mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02: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:
@@ -95,8 +95,10 @@ class WorkflowDAG(SimpleDAG):
|
|||||||
if obj.unified_job_template is None:
|
if obj.unified_job_template is None:
|
||||||
is_failed = True
|
is_failed = True
|
||||||
continue
|
continue
|
||||||
elif not job:
|
elif obj.do_not_run is False and not job:
|
||||||
return False, False
|
return False, False
|
||||||
|
elif obj.do_not_run is True:
|
||||||
|
continue
|
||||||
|
|
||||||
children_success = self.get_dependencies(obj, 'success_nodes')
|
children_success = self.get_dependencies(obj, 'success_nodes')
|
||||||
children_failed = self.get_dependencies(obj, 'failure_nodes')
|
children_failed = self.get_dependencies(obj, 'failure_nodes')
|
||||||
|
|||||||
Reference in New Issue
Block a user