-
-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP co-assign related root-ish tasks #4899
Closed
Closed
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7f454fd
WIP co-assign related root-ish tasks
gjoseph92 8e8f7f1
Handle fastpath decide_worker case
gjoseph92 b12d490
matt's occupancy-based method
gjoseph92 064be2e
Revert "matt's occupancy-based method"
gjoseph92 1484e65
don't require dependents
gjoseph92 5163e77
pass in total_nthreads
gjoseph92 d9df8be
REVERTME debugging message for out-of-order
gjoseph92 7b9728f
REVERTME print statements
gjoseph92 0fbb75e
Ignore deps of root-likes. This is working well.
gjoseph92 f2da0bc
Save a few cycles
gjoseph92 d3db281
WIP docs
gjoseph92 c929c96
comment out prints & handle out of priority order
gjoseph92 f25ed42
Revert "Save a few cycles"
gjoseph92 f50daf1
Count the task that was just scheduled
gjoseph92 3a73508
Balace fairly across heterogeneous workers
gjoseph92 cfe37f6
Tests
gjoseph92 0b5486f
Test both axes. I think this is excessive.
gjoseph92 2c2bb68
Revert "Test both axes. I think this is excessive."
gjoseph92 5e58b5a
Handle zero-division
gjoseph92 4132583
Unset `_last_worker` when we lose a worker
gjoseph92 df2cf70
Check last used worker is valid for this task
gjoseph92 19107d8
comment out print
gjoseph92 8e45244
Remove some cruft
gjoseph92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3 the ascii art
Comment/question: Do we want to explain all of this here? Historically I haven't put the logic behind heuristics in the code. This is a subjective opinion, and far from universal, but I find that heavily commented/documented logic makes it harder to understand the code at a glance. I really like that the current decide_worker implementation fits in a terminal window. I think that single-line comments are cool, but that long multi-line comments would better be written as documentation.
Thoughts? If you are not in disagreement then I would encourage us to write up a small docpage or maybe a blogpost and then link to that external resource from the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also planning on updating https://distributed.dask.org/en/latest/scheduling-policies.html#choosing-workers, probably with this same ascii art. So just linking to that page in the docstring seems appropriate.