Skip to content

Commit e4f62f9

Browse files
committed
absolute memory usage for now
1 parent 99c5ae4 commit e4f62f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

distributed/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3252,7 +3252,7 @@ def worker_objective_ignore_deps(self, ws: WorkerState) -> tuple[float, float]:
32523252
32533253
Minimize worker occupancy. If a tie then break with data storage.
32543254
"""
3255-
return (ws.occupancy / ws.nthreads, ws.nbytes / (ws.memory_limit or 1))
3255+
return (ws.occupancy / ws.nthreads, ws.nbytes)
32563256

32573257
def add_replica(self, ts: TaskState, ws: WorkerState):
32583258
"""Note that a worker holds a replica of a task with state='memory'"""

distributed/tests/test_scheduler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ async def test_decide_worker_memory_tiebreaker_idle_cluster(c, s, *workers):
517517
assert first(last_ts.who_has) is not first(big_ts.who_has)
518518

519519

520+
@pytest.mark.skip(
521+
"Not yet implemented: https://github.com/dask/distributed/issues/7266"
522+
)
520523
@gen_cluster(
521524
client=True,
522525
nthreads=[],

0 commit comments

Comments
 (0)