[Dask] Asyncio support. (#5862)
This commit is contained in:
@@ -27,8 +27,10 @@ def run_rabit_ops(client, n_workers):
|
||||
from xgboost import rabit
|
||||
|
||||
workers = list(_get_client_workers(client).keys())
|
||||
rabit_args = _get_rabit_args(workers, client)
|
||||
rabit_args = client.sync(_get_rabit_args, workers, client)
|
||||
assert not rabit.is_distributed()
|
||||
n_workers_from_dask = len(workers)
|
||||
assert n_workers == n_workers_from_dask
|
||||
|
||||
def local_test(worker_id):
|
||||
with RabitContext(rabit_args):
|
||||
|
||||
Reference in New Issue
Block a user