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

enable middleware to log traceback on timeout #2254

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kdelee
Copy link
Member

@kdelee kdelee commented Sep 5, 2024

What is this PR doing:

gunicorn sends a signal 6 when it is about to timeout a request This middleware handles that request and logs a traceback.

this aids in debugging infrastructure issues that may be causing requests to timeout.

Issue: https://issues.redhat.com/browse/AAP-29982 (caused by https://issues.redhat.com/browse/AAP-27692 )

Reviewers must know:

To test manually, change gunicorn timeout to much lower value and add sleep in a view
See django-ansible-base notes https://github.com/ansible/django-ansible-base/blob/2af5f34dd4887eeba65f48e01e488745e90f8f04/docs/logging.md?plain=1#L56-L70

PR Author & Reviewers: Keep or remove backport labels per Backporting Guidelines
Reviewers: Look for sound code, no code smells, docs & test coverage
Merger: When merging, include the Jira issue link in the squashed commit

@github-actions github-actions bot added backport-4.2 This PR should be backported to stable-4.2 (1.2) backport-4.4 This PR should be backported to stable-4.4 (2.1) backport-4.5 This PR should be backported to stable-4.5 (2.2) backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) backport-4.9 This PR should be backported to stable-4.9 (2.4) labels Sep 5, 2024
@kdelee kdelee force-pushed the enable_graceful_timeout_logging branch 2 times, most recently from edd4302 to d30ad7d Compare September 5, 2024 16:51
@kdelee
Copy link
Member Author

kdelee commented Sep 5, 2024

@jctanner does this commit checker only accept issues in AAH ?

gunicorn sends a signal 6 when it is about to timeout a request
This middleware handles that request and logs a traceback.

this aids in debugging infrastructure issues that may be causing
requests to timeout.
@kdelee kdelee force-pushed the enable_graceful_timeout_logging branch from d30ad7d to 1025cc3 Compare September 18, 2024 14:23
@jctanner jctanner removed backport-4.2 This PR should be backported to stable-4.2 (1.2) backport-4.4 This PR should be backported to stable-4.4 (2.1) backport-4.5 This PR should be backported to stable-4.5 (2.2) backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) backport-4.9 This PR should be backported to stable-4.9 (2.4) labels Oct 14, 2024
Copy link

sonarcloud bot commented Oct 14, 2024

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.

2 participants