mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
fix workflow finish state detector
* Take into account the new do_not_run field when finding if a workflow is finished. If do_not_run is True then the node is considered finished.
This commit is contained in:
parent
6ef6b649e8
commit
ea29e66a41
@ -95,8 +95,10 @@ class WorkflowDAG(SimpleDAG):
|
||||
if obj.unified_job_template is None:
|
||||
is_failed = True
|
||||
continue
|
||||
elif not job:
|
||||
elif obj.do_not_run is False and not job:
|
||||
return False, False
|
||||
elif obj.do_not_run is True:
|
||||
continue
|
||||
|
||||
children_success = self.get_dependencies(obj, 'success_nodes')
|
||||
children_failed = self.get_dependencies(obj, 'failure_nodes')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user