Skip to content

Commit

Permalink
Fix is_idle docs build (#7854)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed May 24, 2023
1 parent fcd921c commit f511c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,10 +1780,10 @@ def _clear_task_state(self) -> None:
def is_idle(self) -> bool:
"""Return True iff there are no tasks that haven't finished computing.
Unlike testing `self.total_occupancy`, this property returns False if there are
Unlike testing ``self.total_occupancy``, this property returns False if there are
long-running tasks, no-worker, or queued tasks (due to not having any workers).
Not to be confused with :ivar:`idle`.
Not to be confused with ``idle``.
"""
return all(
count == 0 or state in {"memory", "error", "released", "forgotten"}
Expand Down

0 comments on commit f511c8d

Please sign in to comment.