Skip to content

Commit

Permalink
Update distributed/scheduler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored May 4, 2022
1 parent 01a0e8c commit e3d62f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,7 @@ def get_comm_cost(self, ts: TaskState, ws: WorkerState) -> float:
for dts in deps:
nbytes += dts.nbytes
# Add a fixed 10ms penalty per transfer. See distributed#5324
return nbytes / self._bandwidth + 0.01 * len(deps)
return nbytes / self.bandwidth + 0.01 * len(deps)

def get_task_duration(self, ts: TaskState) -> float:
"""Get the estimated computation cost of the given task (not including
Expand Down

0 comments on commit e3d62f6

Please sign in to comment.