mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 13:55:04 -02:30
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:
@@ -129,7 +129,9 @@ class WorkflowDAG(SimpleDAG):
|
|||||||
parent_run_path = True
|
parent_run_path = True
|
||||||
|
|
||||||
elif p.job and p.job.status == 'successful':
|
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
|
parent_run_path = True
|
||||||
|
|
||||||
elif p.job and p.job.status == 'failed':
|
elif p.job and p.job.status == 'failed':
|
||||||
|
|||||||
Reference in New Issue
Block a user