Skip to content
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

Ensure cancelled error transition can properly release a key #5528

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

fjetter
Copy link
Member

@fjetter fjetter commented Nov 19, 2021

ts._next = None was used as a sentinel but it is much cleaner to be explicit here since the logic detecting this sentinel was flawed.

Closes #5527

Comment on lines +172 to +175
start_finish = [(msg[1], msg[2], msg[3]) for msg in story if len(msg) == 7]
assert ("executing", "released", "cancelled") in start_finish
assert ("cancelled", "error", "error") in start_finish
assert ("error", "released", "released") in start_finish
Copy link
Member Author

Choose a reason for hiding this comment

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

This should've failed hard in #5525 already but we likely just missed it due to all the failure noise lately

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @fjetter

@jrbourbeau jrbourbeau merged commit 17b3989 into dask:main Nov 19, 2021
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.

distributed/tests/test_cancelled_state.py failures
2 participants