Skip to content

Tweaks to update_graph (backport from #8185)#8498

Merged
crusaderky merged 2 commits intodask:mainfrom
crusaderky:update_graph
Feb 15, 2024
Merged

Tweaks to update_graph (backport from #8185)#8498
crusaderky merged 2 commits intodask:mainfrom
crusaderky:update_graph

Conversation

@crusaderky
Copy link
Collaborator

Miscellaneous non-controversial tweaks to update_graph, backported from #8185 (which may not happen for some time).

Notably, if update_graph fails this PR notifies the client who invoked update_graph in addition to all other clients in who_wants.
I didn't write a unit test as I'm unsure of how to trigger this use case without #8185.

@crusaderky crusaderky marked this pull request as ready for review February 6, 2024 17:46
@crusaderky crusaderky requested a review from fjetter as a code owner February 6, 2024 17:46
# - Add in deps for any tasks that depend on futures
for k, futures in fut_deps.items():
dependencies[k].update(f.key for f in futures)
dependencies[k].update(f.key for f in futures if f.key != k)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is from @fjetter and I'm unclear about the use case for it...

Rest of the changes to the function are non-functional.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really follow this either.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to revert it to unblock this PR. Once @fjetter responds, I'll potentially write a dedicated PR (with unit test to demonstrate the edge case).

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2024

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    27 files  +    1      27 suites  +1   10h 23m 21s ⏱️ + 47m 48s
 3 973 tests +    2   3 861 ✅ ±    0    109 💤 ± 0   3 ❌ +2 
49 957 runs  +2 573  47 650 ✅ +2 508  2 292 💤 +63  15 ❌ +2 

For more details on these failures, see this check.

Results for commit 471715c. ± Comparison against base commit 9a9468c.

♻️ This comment has been updated with latest results.

Copy link
Member

@hendrikmakait hendrikmakait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @crusaderky! CI failure is unrelated. There's one mysterious change in here that I'd like for us to understand better (cc @fjetter), but that's non-blocking.

# - Add in deps for any tasks that depend on futures
for k, futures in fut_deps.items():
dependencies[k].update(f.key for f in futures)
dependencies[k].update(f.key for f in futures if f.key != k)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really follow this either.

@crusaderky crusaderky merged commit 6e00e93 into dask:main Feb 15, 2024
@crusaderky crusaderky deleted the update_graph branch February 15, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants