From 86daefb94a4da3df40580cef08079ee77bccc634 Mon Sep 17 00:00:00 2001 From: RoomaPerera <180041206+RoomaPerera@users.noreply.github.com> Date: Sun, 25 Jan 2026 16:15:24 +0530 Subject: [PATCH] docs: remove non-existent Scheduler.cleanup from Scheduler.close docstring --- distributed/scheduler.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/distributed/scheduler.py b/distributed/scheduler.py index d73da7c71f..8e698c4d4c 100644 --- a/distributed/scheduler.py +++ b/distributed/scheduler.py @@ -4329,12 +4329,8 @@ async def close( timeout: float | None = None, reason: str = "unknown", ) -> None: - """Send cleanup signal to all coroutines then wait until finished - - See Also - -------- - Scheduler.cleanup - """ + """Send cleanup signal to all coroutines then wait until finished""" + if self.status in (Status.closing, Status.closed): await self.finished() return