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

Better gunicorn timeout handling. #497

Merged
merged 3 commits into from Dec 16, 2019
Merged

Better gunicorn timeout handling. #497

merged 3 commits into from Dec 16, 2019

Conversation

bloodearnest
Copy link
Contributor

@bloodearnest bloodearnest commented Dec 13, 2019

By raising our own exception in Gunicorn's worker_abort handler, we can
catch and handle it just like any other error. This means we get an
error response, logging, and sentry report for the timeout, which is
a massive improvement.

Also includes a few of drive-by tweaks - disable parallel pytest runs in tox, as it generally confuses things, tweak the error message for assert_log help to reduce noise, and slight tweaks to the title of the default error pages.

By raising our own exception in Gunicorn's worker_abort handler, we can
catch and handle it just like any other error. This means we get an
error response, logging, and sentry report for the timeout, which is
a massive improvement.

Also includes a few of drive-by tweaks - disable parallel pytest runs in
tox, as it generally confuses things, tweak the error message for
assert_log help to reduce noise, and slight tweaks to the title of the
default error pages.
Copy link
Contributor

@Roadmaster Roadmaster left a comment

Choose a reason for hiding this comment

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

Yay, looks OK to me!

@bloodearnest bloodearnest merged commit f13d51e into master Dec 16, 2019
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

2 participants