Properly await async method client.wait_for_workers (#8558) (#8567)

* Properly await async method client.wait_for_workers

* ignore mypy error.

Co-authored-by: jiamingy <jm.yuan@outlook.com>

Co-authored-by: Matthew Rocklin <mrocklin@gmail.com>
This commit is contained in:
Jiaming Yuan 2022-12-07 23:25:05 +08:00 committed by GitHub
parent 59c54e361b
commit a980e10744
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
)