stop DNR propogation on always path

* This makes sure DNR propogation stops when a job is successful, down
an always path
This commit is contained in:
chris meyers
2018-10-15 13:57:19 -04:00
parent d060bd441b
commit e7057ce23a

View File

@@ -129,7 +129,9 @@ class WorkflowDAG(SimpleDAG):
parent_run_path = True
elif p.job and p.job.status == 'successful':
if n in self.get_dependencies(p, 'success_nodes'):
children_success = self.get_dependencies(p, 'success_nodes')
children_always = self.get_dependencies(p, 'always_nodes')
if n in children_success or n in children_always:
parent_run_path = True
elif p.job and p.job.status == 'failed':