Skip to content

Commit

Permalink
Pending tasks don't have a worker #585
Browse files Browse the repository at this point in the history
  • Loading branch information
mher committed Jun 4, 2016
1 parent f596afc commit 10cef87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flower/api/tasks.py
Expand Up @@ -598,5 +598,6 @@ def get(self, taskid):
if name not in ['uuid', 'worker']:
response[name] = getattr(task, name, None)
response['task-id'] = task.uuid
response['worker'] = task.worker.hostname
if task.worker is not None:
response['worker'] = task.worker.hostname
self.write(response)

0 comments on commit 10cef87

Please sign in to comment.