[core] Node: stopComputation method

- Node: stopComputation method.
- Task Manager: avoid stopping the entire task manager when a node is stopped.
This commit is contained in:
Julien-Haudegond 2020-08-20 15:53:02 +02:00
parent 723e007ae6
commit b71832ebbd
2 changed files with 7 additions and 3 deletions

View file

@ -788,6 +788,12 @@ class BaseNode(BaseObject):
def endSequence(self):
pass
def stopComputation(self):
""" Stop the computation of this node. """
for chunk in self._chunks.values():
if not chunk.isExtern():
chunk.stopProcess()
def getGlobalStatus(self):
"""
Get node global status based on the status of its chunks.