Skip to content

Commit 783656e

Browse files
committed
handle previous errors in update_status
1 parent f0fbb66 commit 783656e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pydra/engine/submitter.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,16 @@ def update_status(self) -> None:
525525
return
526526
# Check to see if any previously queued tasks have completed
527527
for index, task in list(self.queued.items()):
528-
if task.done:
528+
try:
529+
is_done = task.done
530+
except ValueError:
531+
errored = True
532+
is_done = False
533+
else:
534+
errored = False
535+
if is_done:
529536
self.successful[task.state_index] = self.queued.pop(index)
530-
elif task.errored:
537+
elif task.errored or errored:
531538
self.errored[task.state_index] = self.queued.pop(index)
532539
elif task.run_start_time:
533540
self.running[task.state_index] = (

0 commit comments

Comments
 (0)