Skip to content

Fixed shutdowns. #425

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

Merged
merged 1 commit into from
Mar 15, 2025
Merged

Fixed shutdowns. #425

merged 1 commit into from
Mar 15, 2025

Conversation

s3rius
Copy link
Member

@s3rius s3rius commented Mar 15, 2025

This PR fixes the way shutdowns are being invoked.

The behavior before this change was correct in previous versions of the shutdown logic. However, I updated the way shutdown events are propagated in #381, and since then, the broker has stopped propagating the KeyboardInterrupt exception. As a result, the shutdown() method was not being called.

Fun observation: the hard-kill logic still throws a KeyboardInterrupt exception, and if the hard-kill is triggered quickly enough, the shutdown will occur correctly.

Fixes #424.

@s3rius s3rius merged commit 319ac9f into master Mar 15, 2025
66 checks passed
s3rius added a commit that referenced this pull request Apr 4, 2025
s3rius added a commit that referenced this pull request Apr 4, 2025
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.

In some cases shutdown middleware is not called.
1 participant