Skip to content

Commit 31c031c

Browse files
Workaround deadlock
Closes #52
1 parent 3448f1c commit 31c031c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bio2zarr/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,10 @@ def results_as_completed(self):
225225
def __exit__(self, exc_type, exc_val, exc_tb):
226226
if exc_type is None:
227227
wait_on_futures(self.futures)
228+
# Note: this doesn't seem to be working correctly. If
229+
# we set a timeout of None we get deadlocks
228230
set_progress(self.progress_config.total)
229-
timeout = None
231+
timeout = 1
230232
else:
231233
cancel_futures(self.futures)
232234
timeout = 0

0 commit comments

Comments
 (0)