mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
treat canceled nodes as failed when processing wf
* When deciding what jobs to run next, treat canceled as failed. * Also add tests.
This commit is contained in:
@@ -71,7 +71,7 @@ class WorkflowDAG(SimpleDAG):
|
||||
return False
|
||||
|
||||
# Node decidedly got a job; check if job is done
|
||||
if p.job and p.job.status not in ['successful', 'failed', 'error']:
|
||||
if p.job and p.job.status not in ['successful', 'failed', 'error', 'canceled']:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user