Skip to content

Commit 9c928c9

Browse files
martindurantjakirkham
authored andcommitted
Extract SchedulerState from Scheduler
1 parent d2d76c0 commit 9c928c9

File tree

4 files changed

+710
-578
lines changed

4 files changed

+710
-578
lines changed

distributed/active_memory_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ def log_reject(msg: str) -> None:
222222
return None
223223

224224
if candidates is None:
225-
candidates = self.scheduler.running.copy()
225+
candidates = self.scheduler.state.running.copy()
226226
else:
227227
# Don't modify orig_candidates
228-
candidates = candidates & self.scheduler.running
228+
candidates = candidates & self.scheduler.state.running
229229
if not candidates:
230230
log_reject("no running candidates")
231231
return None

0 commit comments

Comments
 (0)