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

Automatically attach a sigterm listener to the message consumer #187

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Apr 5, 2023

Changes the factory for the ConsumeMessagesCommand so that StopWorkerOnSigtermSignalListener is attached. This will mean that workers will be stopped gracefully when the worker is terminated.

This is considered a BC break because it is likely that users of this library were already doing this by way of a delegator factory (I certainly am), so this patch will result in duplicate listeners unless consumers update their code accordingly.

Closes #108

Changes the factory for the `ConsumeMessagesCommand` so that `StopWorkerOnSigtermSignalListener` is attached. This will mean that workers will be stopped gracefully when the worker is terminated.

Closes #108
@gsteel gsteel added enhancement New feature or request BC Break labels Apr 5, 2023
@gsteel gsteel added this to the 2.0.0 milestone Apr 5, 2023
@gsteel gsteel self-assigned this Apr 5, 2023
@gsteel gsteel merged commit e650e54 into 2.0.x Apr 5, 2023
@gsteel gsteel deleted the sigterm-listener branch April 5, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically add Sigterm Listener
1 participant