Properly await async method client.wait_for_workers (#8558)

* Properly await async method client.wait_for_workers

* ignore mypy error.

Co-authored-by: jiamingy <jm.yuan@outlook.com>
This commit is contained in:
Matthew Rocklin 2022-12-07 07:49:30 -06:00 committed by GitHub
parent 4f1e453ff5
commit b7ffdcdbb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -853,7 +853,7 @@ async def _get_rabit_args(
sched_addr = None
# make sure all workers are online so that we can obtain reliable scheduler_info
client.wait_for_workers(n_workers)
await client.wait_for_workers(n_workers) # type: ignore
env = await client.run_on_scheduler(
_start_tracker, n_workers, sched_addr, user_addr
)