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

Fix issue with Que being unable to exit cleanly #116

Merged
merged 9 commits into from
Feb 21, 2025

Conversation

JoeSouthan
Copy link
Contributor

@JoeSouthan JoeSouthan commented Feb 20, 2025

Rack::Puma::Handler will trap signals which prevents que from receiving the SIGINT and SIGTERM signals - causing K8s to eventually SIGTERM the pods after some time.

Inspired by Capybara

`Rack::Puma::Handler` will `trap` signals which prevents que from
receiving the SIGINT and SIGTERM signals - causing K8s to eventually
SIGTERM the pods after some time.
@stephenbinns
Copy link
Contributor

Couldn't see anything in the spec https://github.com/teamcapybara/capybara/blob/0480f90168a40780d1398c75031a255c1819dce8/spec/server_spec.rb but can we write a test for this?

@JoeSouthan JoeSouthan force-pushed the joesouthan-puma-server branch from 4563c31 to 4c1af58 Compare February 20, 2025 20:26
Copy link
Contributor

@stephenbinns stephenbinns left a comment

Choose a reason for hiding this comment

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

Nice one

@JoeSouthan JoeSouthan merged commit 3808c8e into master Feb 21, 2025
9 checks passed
@JoeSouthan JoeSouthan deleted the joesouthan-puma-server branch February 21, 2025 09:45
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.

3 participants