Skip to content

Commit

Permalink
catch harakiri graceful signal in middlware and log debug info
Browse files Browse the repository at this point in the history
Middleware is from django_ansible_base
  • Loading branch information
kdelee committed Aug 29, 2024
1 parent 50db801 commit 444af2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@

MIDDLEWARE = [
'django_guid.middleware.guid_middleware',
'ansible_base.lib.middleware.logging.log_request.LogTracebackMiddleware',
'awx.main.middleware.SettingsCacheMiddleware',
'awx.main.middleware.TimingMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down
5 changes: 5 additions & 0 deletions tools/ansible/roles/dockerfile/files/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ master-fifo = /var/lib/awx/awxfifo
max-requests = 1000
buffer-size = 32768

harakiri = 115
harakiri-graceful-timeout = 110
harakiri-graceful-signal = 6
py-call-osafterfork = true

if-env = UWSGI_MOUNT_PATH
mount = %(_)=awx.wsgi:application
endif =
Expand Down

0 comments on commit 444af2b

Please sign in to comment.