Skip to content

Commit

Permalink
Merge pull request #1210 from alicevision/dev/chunkStatus
Browse files Browse the repository at this point in the history
[core] taskManager: downgrade status per chunk
  • Loading branch information
fabiencastan authored Jan 15, 2021
2 parents c502ee1 + 4a5995b commit 45308f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions meshroom/core/taskManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ def requestBlockRestart(self):
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
Expand Down

0 comments on commit 45308f7

Please sign in to comment.