-
-
Notifications
You must be signed in to change notification settings - Fork 750
Partially forgotten dependencies #9068
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
71ce8dc
Partially forgotten dependnecies
fjetter f215a42
add some more comments
fjetter 4e45399
Abort update_graph immediately if key is missing
fjetter 26dc7d8
Fix test_worker_clients_do_not_claim_ownership_of_serialize_futures t…
fjetter 7615039
Change back to CancelledError
fjetter 04a713a
fix test case
fjetter 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 hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,7 @@ | |||||||
| import dask | ||||||||
| import dask.bag as db | ||||||||
| from dask import delayed | ||||||||
| from dask.task_spec import Task, TaskRef | ||||||||
| from dask.tokenize import TokenizationError, tokenize | ||||||||
| from dask.utils import get_default_shuffle_method, parse_timedelta, tmpfile | ||||||||
|
|
||||||||
|
|
@@ -3109,6 +3110,46 @@ async def test_submit_on_cancelled_future(c, s, a, b): | |||||||
| await c.submit(inc, x) | ||||||||
|
|
||||||||
|
|
||||||||
| @pytest.mark.parametrize("validate", [True, False]) | ||||||||
| @gen_cluster(client=True) | ||||||||
| async def test_compute_partially_forgotten(c, s, *workers, validate): | ||||||||
| if not validate: | ||||||||
| s.validate = False | ||||||||
| # (CPython impl detail) | ||||||||
| # While it is not possible to know what the iteration order of a set will | ||||||||
| # be, it is determinisitic and only depends on the hash of the inserted | ||||||||
| # elements. Therefore, converting the set to a list will alway yield the | ||||||||
| # same order. We're initializing the keys in this very specific order to | ||||||||
| # ensure that the scheduler internally arranges the keys in this way | ||||||||
|
|
||||||||
| # We'll need the list to be | ||||||||
| # ['key', 'lost_dep_of_key'] | ||||||||
| # At the time of writing, it is unclear why the lost_dep_of_key is part of | ||||||||
| # keys but this triggers an observed error | ||||||||
| keys = key, lost_dep_of_key = list({"foo", "bar"}) | ||||||||
|
||||||||
| keys = key, lost_dep_of_key = list({"foo", "bar"}) | |
| keys = list({"foo", "bar"}) | |
| key, lost_dep_of_key = keys |
fjetter marked this conversation as resolved.
Show resolved
Hide resolved
fjetter marked this conversation as resolved.
Show resolved
Hide resolved
Oops, something went wrong.
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.
The behavior of this is depending on the ordering of the keys. In particular
_find_lost_dependenciesis misbehaving depending on the order of this linedistributed/distributed/scheduler.py
Line 4641 in 358402d
With this test setup we always prepare for the case where the one key is not discarded as it should be