-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
_transition_from_resumed
contains legacy code and documentation
#6693
Comments
These three are really the same issue:
distributed/distributed/worker_state_machine.py Lines 1948 to 1968 in 40867c7
Lines 1949-1953 are unreachable, because
As a side note, I'm unsure how a transition resumed->missing can ever happen, but I'm fairly sure there's no unit test for it. As a consequence, the use case
is unwittingly covered by lines 1958+. Those lines do not cover the use case
|
_transition_from_resumed
should not be reachable from a code path wherets._previous == "executing"
. Yet, it states this in the docstring and performs checks for this behavior. We should revisit the code and explanation and clean it up to improve readability.The text was updated successfully, but these errors were encountered: