Skip to content

Commit

Permalink
[dask] Use DMLC_TASK_ID. (#5415)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Mar 15, 2020
1 parent fc88105 commit 668e432
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 668e432

Please sign in to comment.