short circuit performance optimization

This commit is contained in:
chris meyers 2018-10-16 08:33:20 -04:00 committed by mabashian
parent b4fc585495
commit 77661c6032

View File

@ -122,6 +122,9 @@ class WorkflowDAG(SimpleDAG):
all_parents_dnr = True
parent_run_path = False
for p in parent_nodes:
if p.do_not_run is True:
continue
if not p.job and p.do_not_run is False:
all_parents_dnr = False