You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While registering a scheduler plugin get TypeError: PooledRPCCall.__getattr__.<locals>.send_recv_from_rpc() takes 0 positional arguments but 1 was given
#9001
Open
markcoletti opened this issue
Feb 3, 2025
· 2 comments
scheduler=<pooled rpc to 'tcp://127.0.0.1:57991'>
Traceback (most recent call last):
File "/Users/may/Projects/scratch/dask_scheduler/scheduler.py", line 22, in <module>
client.scheduler.add_plugin(my_scheduler_plugin)
TypeError: PooledRPCCall.__getattr__.<locals>.send_recv_from_rpc() takes 0 positional arguments but 1 was given
Anything else we need to know?:
N/A
Environment:
Dask version:
dask 2024.10.0
distributed 2024.10.0
And the same behavior observed for 2024.11.2
Python version: 3.10.15 and 3.11.7
Operating System:
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
Install method (conda, pip, source):
conda and pip
The text was updated successfully, but these errors were encountered:
Hi, please use Client.register_plugin(...) instead of the undocumened Client.scheduler.add_plugin. FWIW, Client.scheduler is considered private as it's not documented, but we may want to mark it explicitly as private.
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: