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

Don’t raise an exception on SIGTERM #1820

Conversation

gnclmorais
Copy link
Contributor

@gnclmorais gnclmorais commented Oct 16, 2022

image

Looking at our Rollbar quota, the large majority of the errors we get there come from, I believe, the recurring Heroku restart that happens. I see no reason to report these to Rollbar, since they are expected and, at least while using Heroku, necessary.

Luckily, looks like Puma has an option for this, so it makes sense to me to turn it on (or rather off, since we’re setting it to false). Found it while doing some research on this subject, since I’ve had a feeling I’ve seen it before.

I tested this locally by terminating the rails s process without that option set and with that option set, here were the results (you see SIGTERM mention on the first one and no mention on the second try):
Screen Shot 2022-10-16 at 11 14 06

Looking at our Rollbar quota, the large majority of the errors we get
there come from, I believe, the recurring Heroku restart that happens.
I see no reason to report these to Rollbar, since they are expected
and, at least while using Heroku, necessary.

Luckily, looks like [Puma has an option for this][0], so it makes sense
to me to turn it on (or rather off, since we’re setting it to `false`).
[Found it][1] while doing some research on this subject, since I’ve had
a feeling I’ve seen it before.

[0]: https://www.rubydoc.info/gems/puma/Puma%2FDSL:raise_exception_on_sigterm
[1]: puma/puma#1438
Copy link
Contributor

@KimberleyCook KimberleyCook left a comment

Choose a reason for hiding this comment

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

Thaaaanks

@KimberleyCook KimberleyCook merged commit dbd12f2 into codebar:master Oct 17, 2022
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.

None yet

3 participants