mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
only visit nodes once for dnr
This commit is contained in:
parent
a9365a3967
commit
447dfbb64d
@ -108,9 +108,13 @@ class WorkflowDAG(SimpleDAG):
|
||||
root_nodes = self.get_root_nodes()
|
||||
nodes = copy.copy(root_nodes)
|
||||
nodes_marked_do_not_run = []
|
||||
node_ids_visited = set()
|
||||
|
||||
for index, n in enumerate(nodes):
|
||||
obj = n['node_object']
|
||||
if obj.id in node_ids_visited:
|
||||
continue
|
||||
node_ids_visited.add(obj.id)
|
||||
job = obj.job
|
||||
|
||||
if not job and obj.do_not_run is False and n not in root_nodes:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user