unregister_worker_plugin(self, name, nanny=None)
This unregisters an existing worker plugin. As part of the unregistration process the plugin's teardown
method will be called.
Name of the plugin to unregister. See the Client.register_worker_plugin
docstring for more information.
Unregisters a lifecycle worker plugin
>>> class MyPlugin(WorkerPlugin):This example is valid syntax, but we were not able to check execution
... def __init__(self, *args, **kwargs):
... pass # the constructor is up to you
... def setup(self, worker: dask.distributed.Worker):
... pass
... def teardown(self, worker: dask.distributed.Worker):
... pass
... def transition(self, key: str, start: str, finish: str, **kwargs):
... pass
... def release_key(self, key: str, state: str, cause: str | None, reason: None, report: bool):
... pass
>>> plugin = MyPlugin(1, 2, 3)See :
... client.register_worker_plugin(plugin, name='foo')
... client.unregister_worker_plugin(name='foo')
The following pages refer to to this document either explicitly or contain code examples using this.
distributed.client.Client.register_worker_plugin
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them