Skip to content

Commit

Permalink
include maxsize in initial check
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 committed Oct 5, 2022
1 parent 0922e5c commit 3a0329e
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 @@ -8336,7 +8336,7 @@ def family(
# TODO potentially could be useful to distinguish between 'too big'
# and empty family---we might want to schedule them differently.
# That is, maybe `None` and `(set(), set())` might not be synonymous.
if not ts.dependents or len(ts.dependents) > widely_shared_cutoff:
if not ts.dependents or len(ts.dependents) > min(widely_shared_cutoff, maxsize):
return None

siblings: set[TaskState] = set()
Expand Down

0 comments on commit 3a0329e

Please sign in to comment.