galaxy_ng icon indicating copy to clipboard operation
galaxy_ng copied to clipboard

enable middleware to log traceback on timeout

Open kdelee opened this issue 1 year ago • 2 comments

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

kdelee avatar Sep 05 '24 16:09 kdelee

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

kdelee avatar Sep 05 '24 16:09 kdelee

@kdelee do you think this is still valid? want to get this merged? if so, please rebase.

rochacbruno avatar Mar 03 '25 18:03 rochacbruno

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.

patchback[bot] avatar Mar 20 '25 17:03 patchback[bot]