Skip to content

Commit

Permalink
Match incorrect existing behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 committed Sep 14, 2022
1 parent 7a6d4dc commit f3de3b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,11 @@ def _set_duration_estimate(self, ts: TaskState, ws: WorkerState) -> None:
cpu = self.get_task_duration(ts)
if exec_time > 2 * cpu:
cpu = 2 * exec_time
network = self.get_comm_cost(ts, ws)
# FIXME this matches existing behavior but is clearly bizarre
# https://github.com/dask/distributed/issues/7003
network = 0.0
else:
network = self.get_comm_cost(ts, ws)

old = ws.processing.get(ts, Occupancy(0, 0))
ws.processing[ts] = new = Occupancy(cpu, network)
Expand Down

0 comments on commit f3de3b9

Please sign in to comment.