Fix Nanny shutdown edge case #6357
Merged
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.
Introduced in #6146, which was putting a
closemessage instead ofstop:distributed/distributed/nanny.py
Lines 855 to 862 in b8b45c6
This error was triggered in #6320, but clearly doesn't happen in CI normally. I have not tried to add a test for it. It was already untested when added.
cc @mrocklin @fjetter
pre-commit run --all-files