Fix running workflows in the background when tool bursting is enabled.

This commit is contained in:
John Chilton
2016-04-27 15:36:45 -04:00
parent 9e980862c8
commit 615b0b444e
+4 -1
View File
@@ -166,7 +166,10 @@ class WorkflowInvoker( object ):
workflow_invocation_step = model.WorkflowInvocationStep()
workflow_invocation_step.workflow_invocation = workflow_invocation
workflow_invocation_step.workflow_step = step
workflow_invocation_step.job = job
# Job may not be generated in this thread if bursting is enabled
# https://github.com/galaxyproject/galaxy/issues/2259
if job:
workflow_invocation_step.job_id = job.id
except modules.DelayedWorkflowEvaluation:
step_delayed = delayed_steps = True
self.progress.mark_step_outputs_delayed( step )