mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-30 17:36:33 +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):
|
||||
""" Avoid the automatic restart of computing. """
|
||||
for node in self._nodesToProcess:
|
||||
if node.getGlobalStatus() in (Status.SUBMITTED, Status.ERROR):
|
||||
node.upgradeStatusTo(Status.NONE)
|
||||
chunkCount = 0
|
||||
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._blockRestart = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue