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
Registering a WorkerPlugin subclass with Client.register_plugin raises an error. Client.register_worker_plugin works fine, but warns of deprecation.
My real use case is trying to run a "start collecting performance stats" and "stop collecting performance stats" command on each worker for a storage backend.
Thanks for the issue @ivirshup. Something strange is going on with the WorkerPlugin import. I'm able to reproduce with your minimal example (thanks for that), but things work as expected if I use
# Removed `dask.`
from distributed.diagnostics.plugin import WorkerPlugin
or
# Shorter version (also without `dask.` prefix)
from distributed import WorkerPlugin
Describe the issue:
Registering a WorkerPlugin subclass with
Client.register_plugin
raises an error.Client.register_worker_plugin
works fine, but warns of deprecation.My real use case is trying to run a "start collecting performance stats" and "stop collecting performance stats" command on each worker for a storage backend.
Minimal Complete Verifiable Example:
Anything else we need to know?:
This seems to work fine with
register_worker_plugin
Environment:
The text was updated successfully, but these errors were encountered: