Skip to content

Commit

Permalink
wait for futures when using restore worker
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Aug 1, 2024
1 parent 1b23368 commit 523fdc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pfb/workers/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def _restore(**kw):
from pfb.utils.restoration import restore_cube
from itertools import cycle
from daskms.fsspec_store import DaskMSStore
from distributed import wait
try:
from distributed import get_client
client = get_client()
Expand Down Expand Up @@ -328,4 +329,7 @@ def _restore(**kw):
# hdr,
# overwrite=opts.overwrite)

if opts.nworkers > 1:
wait(futures)

return

0 comments on commit 523fdc4

Please sign in to comment.