Skip to content

Commit a980e10

Browse files
trivialfismrocklin
andauthored
Properly await async method client.wait_for_workers (dmlc#8558) (dmlc#8567)
* Properly await async method client.wait_for_workers * ignore mypy error. Co-authored-by: jiamingy <[email protected]> Co-authored-by: Matthew Rocklin <[email protected]>
1 parent 59c54e3 commit a980e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-package/xgboost/dask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ async def _get_rabit_args(
853853
sched_addr = None
854854

855855
# make sure all workers are online so that we can obtain reliable scheduler_info
856-
client.wait_for_workers(n_workers)
856+
await client.wait_for_workers(n_workers) # type: ignore
857857
env = await client.run_on_scheduler(
858858
_start_tracker, n_workers, sched_addr, user_addr
859859
)

0 commit comments

Comments
 (0)