-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update usage of get_worker()
in tests
#1141
Update usage of get_worker()
in tests
#1141
Conversation
In dask/distributed#7580 `get_worker` was modified to return the worker of a task, thus it cannot be used by `client.run`, and we must now use `dask_worker` as the first argument to `client.run` to obtain the worker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this test also needs updating
async def test_worker_force_spill_to_disk(): |
@madsbk there are usages of |
Using `client.submit` seems not allowed to resolve `get_worker`, but `client.run` does.
I guess you mean
dask-cuda/dask_cuda/explicit_comms/comms.py Lines 92 to 93 in ec2de78
dask-cuda/dask_cuda/explicit_comms/comms.py Lines 228 to 235 in ec2de78
The above should be fine as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Peter
884a595 says "Using So this seems in conflict? |
I meant that for |
Ah, ok, thanks for the explanation and digging! |
Thanks everyone for reviews! |
/merge |
For completeness in this thread, regarding the substitution of
|
In dask/distributed#7580
get_worker
was modified to return the worker of a task, thus it cannot be used byclient.run
, and we must now usedask_worker
as the first argument toclient.run
to obtain the worker.