Skip to content

Commit

Permalink
Set Zict buffer target to maxsize when memory_target_fraction is Fa…
Browse files Browse the repository at this point in the history
…lse (#4156)
  • Loading branch information
KrishanBhasin authored Oct 12, 2020
1 parent 946c6a4 commit 785500b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,10 @@ def __init__(
deserialize_bytes,
File(path),
)
target = int(float(self.memory_limit) * self.memory_target_fraction)
target = (
int(float(self.memory_limit) * self.memory_target_fraction)
or sys.maxsize
)
self.data = Buffer({}, storage, target, weight)
self.data.memory = self.data.fast
self.data.disk = self.data.slow
Expand Down

0 comments on commit 785500b

Please sign in to comment.