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

restore signal handlers after wait for signals is done #6400

Conversation

graingert
Copy link
Member

if wait_for_signals is cancelled - eg by the idle-timeout=1s expiring it left the wait_for_signals.handle_signal in place
this is usually not a problem because it's only called as the first operation of a brand new process. However when it's called via
CliRunner().invoke( this causes the signal handler to be set for all subsequent tests which impacts using Ctrl+C during development.

  • Tests added / passed
  • Passes pre-commit run --all-files

Copy link
Member

@fjetter fjetter left a comment

Choose a reason for hiding this comment

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

Nice! I noticed this already and got annoyed but didn't have time to investigate!

@fjetter fjetter merged commit 90efa71 into dask:main May 20, 2022
@graingert graingert deleted the restore-signal-handler-after-wait-for-signals-is-done branch May 20, 2022 17:56
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