mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 03:37:13 +02:00
Merge pull request #2258 from alicevision/fix/stopLocalComputations
[core] Only update the running chunk to `STOPPED` when stopping computations
This commit is contained in:
commit
360efb36ad
1 changed files with 6 additions and 3 deletions
|
@ -429,7 +429,11 @@ class NodeChunk(BaseObject):
|
||||||
self.upgradeStatusTo(Status.SUCCESS)
|
self.upgradeStatusTo(Status.SUCCESS)
|
||||||
|
|
||||||
def stopProcess(self):
|
def stopProcess(self):
|
||||||
|
if not self.isExtern():
|
||||||
|
if self._status.status == Status.RUNNING:
|
||||||
self.upgradeStatusTo(Status.STOPPED)
|
self.upgradeStatusTo(Status.STOPPED)
|
||||||
|
elif self._status.status == Status.SUBMITTED:
|
||||||
|
self.upgradeStatusTo(Status.NONE)
|
||||||
self.node.nodeDesc.stopProcess(self)
|
self.node.nodeDesc.stopProcess(self)
|
||||||
|
|
||||||
def isExtern(self):
|
def isExtern(self):
|
||||||
|
@ -942,7 +946,6 @@ class BaseNode(BaseObject):
|
||||||
def stopComputation(self):
|
def stopComputation(self):
|
||||||
""" Stop the computation of this node. """
|
""" Stop the computation of this node. """
|
||||||
for chunk in self._chunks.values():
|
for chunk in self._chunks.values():
|
||||||
if not chunk.isExtern():
|
|
||||||
chunk.stopProcess()
|
chunk.stopProcess()
|
||||||
|
|
||||||
def getGlobalStatus(self):
|
def getGlobalStatus(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue