From 905c5d5c66beb753a0a63bae30626c147fb31532 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 26 Jan 2022 10:24:53 +0000 Subject: [PATCH] add note about where scheduler plugin gets constructed --- distributed/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/distributed/client.py b/distributed/client.py index 43f48cedbf4..08cb03e767b 100644 --- a/distributed/client.py +++ b/distributed/client.py @@ -4527,6 +4527,7 @@ def register_scheduler_plugin(self, plugin, name=None, **kwargs): "future release. Please add plugins by instance instead.", category=FutureWarning, ) + # note: plugin is constructed in async def _register_scheduler_plugin elif kwargs: raise ValueError("kwargs provided but plugin is already an instance")