From aa119e0102f54bcd8c141d2f995630ea065fbcaa Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Mon, 31 Oct 2016 12:09:14 -0400 Subject: [PATCH] Enforce wfj to ignore canceled jobs. --- awx/main/scheduler/dag_workflow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/scheduler/dag_workflow.py b/awx/main/scheduler/dag_workflow.py index 6d2b349365..f2f471381d 100644 --- a/awx/main/scheduler/dag_workflow.py +++ b/awx/main/scheduler/dag_workflow.py @@ -60,6 +60,8 @@ class WorkflowDAG(SimpleDAG): # Job is about to run or is running. Hold our horses and wait for # the job to finish. We can't proceed down the graph path until we # have the job result. + elif job.status == 'canceled': + continue elif job.status not in ['failed', 'error', 'successful']: return False elif job.status in ['failed', 'error']: