Skip to content

Commit eaa9714

Browse files
Remove timeout on wait for completed
1 parent 430ac5e commit eaa9714

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bio2zarr/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def submit(self, *args, **kwargs):
223223
self.futures.add(future)
224224
return future
225225

226-
def wait_for_completed(self, timeout):
226+
def wait_for_completed(self, timeout=None):
227227
done, not_done = cf.wait(self.futures, timeout, cf.FIRST_COMPLETED)
228228
for future in done:
229229
exception = future.exception()

bio2zarr/vcf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ def encode(
15951595
f"Memory budget {display_size(max_memory)} exceeded: "
15961596
f"used={display_size(used_memory)} needed={display_size(wp.memory)}"
15971597
)
1598-
futures = pwm.wait_for_completed(timeout=5)
1598+
futures = pwm.wait_for_completed()
15991599
released_mem = sum(
16001600
future_to_memory_use.pop(future) for future in futures
16011601
)

0 commit comments

Comments
 (0)