Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions distributed/active_memory_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ def log_reject(msg: str) -> None:
return None

if candidates is None:
candidates = self.scheduler.running.copy()
candidates = self.scheduler.state.running.copy()
else:
# Don't modify orig_candidates
candidates = candidates & self.scheduler.running
candidates = candidates & self.scheduler.state.running
if not candidates:
log_reject("no running candidates")
return None
Expand Down Expand Up @@ -467,7 +467,7 @@ def run(self):
nkeys = 0
ndrop = 0

for ts in self.manager.scheduler.replicated_tasks:
for ts in self.manager.scheduler.state.replicated_tasks:
desired_replicas = 1 # TODO have a marker on TaskState

# If a dependent task has not been assigned to a worker yet, err on the side
Expand Down Expand Up @@ -591,7 +591,7 @@ def run(self):
drop_ws = (yield "drop", ts, {ws})
if drop_ws:
continue # Use case 1 or 2
if ts.who_has & self.manager.scheduler.running:
if ts.who_has & self.manager.scheduler.state.running:
continue # Use case 3 or 4
# Use case 5

Expand Down
Loading