From 6a45d6e9499ad86fb13d3bde7663a826d312df88 Mon Sep 17 00:00:00 2001 From: Frames White Date: Fri, 11 Sep 2026 13:20:44 +0800 Subject: [PATCH] Document that start is run as soon as SchedulerPlugin is registered --- distributed/diagnostics/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distributed/diagnostics/plugin.py b/distributed/diagnostics/plugin.py index 8a93a14acd..336b7c2aa8 100644 --- a/distributed/diagnostics/plugin.py +++ b/distributed/diagnostics/plugin.py @@ -78,7 +78,8 @@ class SchedulerPlugin: async def start(self, scheduler: Scheduler) -> None: """Run when the scheduler starts up - This runs at the end of the Scheduler startup process + This runs at the end of the Scheduler startup process, + or immediately upon registering the plugin, if Scheduler has already started. """ async def before_close(self) -> None: