mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-02 19:02:29 +02:00
[core] taskManager: downgrade status per chunk
Avoid to get trailing "submitted" chunks on the current node when we stop the computation.
This commit is contained in:
parent
c502ee1e73
commit
4a5995b346
1 changed files with 6 additions and 2 deletions
|
@ -116,8 +116,12 @@ class TaskManager(BaseObject):
|
||||||
def blockRestart(self):
|
def blockRestart(self):
|
||||||
""" Avoid the automatic restart of computing. """
|
""" Avoid the automatic restart of computing. """
|
||||||
for node in self._nodesToProcess:
|
for node in self._nodesToProcess:
|
||||||
if node.getGlobalStatus() in (Status.SUBMITTED, Status.ERROR):
|
chunkCount = 0
|
||||||
node.upgradeStatusTo(Status.NONE)
|
for chunk in node.chunks:
|
||||||
|
if chunk.status.status in (Status.SUBMITTED, Status.ERROR):
|
||||||
|
chunk.upgradeStatusTo(Status.NONE)
|
||||||
|
chunkCount += 1
|
||||||
|
if chunkCount == len(node.chunks):
|
||||||
self.removeNode(node, displayList=True)
|
self.removeNode(node, displayList=True)
|
||||||
|
|
||||||
self._blockRestart = False
|
self._blockRestart = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue