Skip to content

Commit

Permalink
[dask] Use DMLC_TASK_ID. (dmlc#5415)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Mar 24, 2020
1 parent 01a1f80 commit eff45ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python-package/xgboost/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class RabitContext:
'''A context controling rabit initialization and finalization.'''
def __init__(self, args):
self.args = args
worker = distributed_get_worker()
self.args.append(
('DMLC_TASK_ID=[xgboost.dask]:' + str(worker.address)).encode())

def __enter__(self):
rabit.init(self.args)
Expand Down

0 comments on commit eff45ae

Please sign in to comment.