Skip to content

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.

2 participants