Skip to content

Commit 99a6cd0

Browse files
committed
Update _all_ready method in job monitor
1 parent 1353fe0 commit 99a6cd0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lithops/monitor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ def _all_ready(self):
9090
"""
9191
Checks if all futures are ready, success or done
9292
"""
93-
return all([f.ready or f.success or f.done for f in self.futures])
93+
try:
94+
return all(f.ready or f.success or f.done for f in self.futures)
95+
except Exception:
96+
return False
9497

9598
def _check_new_futures(self, call_status, f):
9699
"""Checks if a functions returned new futures to track"""

0 commit comments

Comments
 (0)