enable middleware to log traceback on timeout
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
@jctanner does this commit checker only accept issues in AAH ?
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@kdelee do you think this is still valid? want to get this merged? if so, please rebase.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Backport to stable-4.10: cherry-pick succeeded
Backport PR branch: patchback/backports/stable-4.10/414a532b90fb2e60ff1f28b3b81a382fa0ad9771/pr-2254
PR branch created, proceeding with making a PR.
🤖 @patchback I'm built with octomachinery and my source is open — https://github.com/sanitizers/patchback-github-app.