-
-
Notifications
You must be signed in to change notification settings - Fork 730
Prefer current and default clients over worker clients in distributed.worker.get_client()
#8106
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
base: main
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? Admins can comment |
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 21 files ± 0 21 suites ±0 9h 57m 38s ⏱️ - 1h 29m 15s For more details on these failures, see this check. Results for commit 1afd997. ± Comparison against base commit acb2809. This pull request removes 1 and adds 8 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
I noticed some linting issues https://github.com/dask/distributed/actions/runs/5864563511/job/15899846304?pr=8106 |
There are a couple of related tests failing. Let me know if you need help figuring out what's the correct behavior |
Hi Florian, I've fixed the pre commit black issue. May I ask you to clarify what exactly do you think is right behavior. According to the way I understand, get_client method should try to get client.current() first and if that fails, _get_client() should return default first and if this fails, it will try to return worker client. |
Hello, Florian. I'm still waiting for your response on the test I'm failing and what you believe is wrong with it. I'd also like to know what I might be able to do to fix it. Thank you! |
Hi @minhnguyenxuan60, I'll take this over from @fjetter, who's unavailable this week. The best way to check if your behavior matches the desired behavior would be to add a test that mimics the reproducer in #7965.
From what I understand from #7965, This breaks with the current behavior that focused on returning the worker client, so I assume it will break some tests. We can look into this once the reproducer from #7965 works as expected. |
distributed.worker.get_client()
to favor the current and default clients over worker clients
distributed.worker.get_client()
to favor the current and default clients over worker clientsdistributed.worker.get_client()
Closes #7965
pre-commit run --all-files