mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 09:56:32 +02:00
[core] Computing and submitting take nonComputing into account + Comment
When computing or submitting a graph, if nodes are not computable they do not send warning that nodes had trouble.
This commit is contained in:
parent
671b3ff128
commit
3a199d7973
2 changed files with 6 additions and 3 deletions
|
@ -333,8 +333,11 @@ class TaskManager(BaseObject):
|
|||
"""
|
||||
ready = []
|
||||
computed = []
|
||||
inputNodes = []
|
||||
for node in toNodes:
|
||||
if context == "COMPUTATION":
|
||||
if not node.isComputable:
|
||||
inputNodes.append(node)
|
||||
elif context == "COMPUTATION":
|
||||
if graph.canCompute(node) and graph.canSubmitOrCompute(node) % 2 == 1:
|
||||
ready.append(node)
|
||||
elif node.isComputed:
|
||||
|
@ -347,7 +350,7 @@ class TaskManager(BaseObject):
|
|||
else:
|
||||
raise ValueError("Argument 'context' must be: 'COMPUTATION' or 'SUBMITTING'")
|
||||
|
||||
if len(ready) + len(computed) != len(toNodes):
|
||||
if len(ready) + len(computed) + len(inputNodes) != len(toNodes):
|
||||
toNodes.clear()
|
||||
toNodes.extend(ready)
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue