Fix taskmanager failing to launch workflow job

This was caused by taskmanager instance group refactoring. This
re-enables that functionality
This commit is contained in:
Matthew Jones
2017-05-23 11:15:57 -04:00
parent 27369aebe9
commit adf4be29b7
2 changed files with 7 additions and 1 deletions

View File

@@ -383,6 +383,8 @@ class TaskManager():
# list of task id's from celery and now.
# Note: This is an actual fix, not a reduction in the time
# window that this can happen.
if isinstance(task, WorkflowJob):
continue
if task.status != 'running':
continue
task.status = 'failed'