Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit b09428c

Browse files
committed
Use yield to wait transfer tasks
1 parent 3564752 commit b09428c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mars/services/storage/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ async def fetch_batch(
601601
)
602602
fetch_keys.extend(list(keys))
603603

604-
await asyncio.gather(*transfer_tasks)
604+
yield asyncio.gather(*transfer_tasks)
605605

606606
set_meta_keys = set()
607607
for data_key in fetch_keys:

0 commit comments

Comments
 (0)