diff --git a/meshroom/core/node.py b/meshroom/core/node.py index ebc82600d1..da68cf57c2 100644 --- a/meshroom/core/node.py +++ b/meshroom/core/node.py @@ -429,7 +429,11 @@ def process(self, forceCompute=False): self.upgradeStatusTo(Status.SUCCESS) def stopProcess(self): - self.upgradeStatusTo(Status.STOPPED) + if not self.isExtern(): + if self._status.status == Status.RUNNING: + self.upgradeStatusTo(Status.STOPPED) + elif self._status.status == Status.SUBMITTED: + self.upgradeStatusTo(Status.NONE) self.node.nodeDesc.stopProcess(self) def isExtern(self): @@ -942,8 +946,7 @@ def endSequence(self): def stopComputation(self): """ Stop the computation of this node. """ for chunk in self._chunks.values(): - if not chunk.isExtern(): - chunk.stopProcess() + chunk.stopProcess() def getGlobalStatus(self): """