-
-
Notifications
You must be signed in to change notification settings - Fork 722
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
While registering a scheduler plugin get TypeError: PooledRPCCall.__getattr__.<locals>.send_recv_from_rpc() takes 0 positional arguments but 1 was given #9001
Comments
Hi, please use |
Would you be interested in submitting a PR that fixes the outdated example? |
Hey @hendrikmakait thanks for your help! I work with @markcoletti and we are debugging this together. The issue we are seeing is that If we use That's why we have been using Is there anything we could do to avoid having to cloud pickle our scheduler plugin, since it has a private attribute that can't be pickled? |
I assume you're trying to register a scheduler plugin? Otherwise we'd have to serialize your plugin anyhow to ship it to the workers, which means that you'd be out of luck.
That's rather odd. There are two possibilities that I see for you:
|
Did you upgrade any packages recently? |
Describe the issue:
When registering a Dask scheduler plugin via
Scheduler.add_plugin
, we get the following error:TypeError: PooledRPCCall.__getattr__.<locals>.send_recv_from_rpc() takes 0 positional arguments but 1 was given
The offending code is in distributed's
core.py
:Minimal Complete Verifiable Example:
Taken from your own example of a scheduler plugin, which DOES NOT WORK NOW.
This produces the following;
Anything else we need to know?:
N/A
Environment:
And the same behavior observed for
2024.11.2
Darwin mac135909 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:56:34 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6020 arm64
Linux login05 5.14.21-150500.55.49_13.0.57-cray_shasta_c #1 SMP Sun May 12 13:35:37 UTC 2024 (33add2b) x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: