[core] graph: use new dependenciesOnly option on graph operations

Input attribute to input attribute connection is not a real dependency between the nodes.
This commit is contained in:
Fabien Castan 2020-12-14 19:02:49 +01:00
parent 98b5039f8a
commit d291fcc39d
4 changed files with 60 additions and 43 deletions

View file

@ -147,7 +147,7 @@ class TaskManager(BaseObject):
self.removeNode(node, displayList=False, processList=True)
# Remove output nodes from display and computing lists
outputNodes = node.getOutputNodes(recursive=True)
outputNodes = node.getOutputNodes(recursive=True, dependenciesOnly=True)
for n in outputNodes:
if n.getGlobalStatus() in (Status.ERROR, Status.SUBMITTED):
n.upgradeStatusTo(Status.NONE)
@ -184,7 +184,7 @@ class TaskManager(BaseObject):
else:
# Check dependencies of toNodes
if not toNodes:
toNodes = graph.getLeafNodes()
toNodes = graph.getLeafNodes(dependenciesOnly=True)
toNodes = list(toNodes)
allReady = self.checkNodesDependencies(graph, toNodes, "COMPUTATION")
@ -402,7 +402,7 @@ class TaskManager(BaseObject):
# Check dependencies of toNodes
if not toNodes:
toNodes = graph.getLeafNodes()
toNodes = graph.getLeafNodes(dependenciesOnly=True)
toNodes = list(toNodes)
allReady = self.checkNodesDependencies(graph, toNodes, "SUBMITTING")