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:
chris meyers 2018-10-18 09:09:47 -04:00 committed by mabashian
parent 6ef6b649e8
commit ea29e66a41

View File

@ -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')