add a background process to spot celery hangs and reload the worker pool

see: https://github.com/ansible/tower/issues/2085
This commit is contained in:
Ryan Petrello
2018-06-07 16:58:30 -04:00
parent 195aff37ad
commit 88e3c46810
2 changed files with 74 additions and 1 deletions

View File

@@ -15,6 +15,18 @@ stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:celery-watcher]
command = /usr/bin/awx-manage celery_watcher
directory = /var/lib/awx
environment = LANGUAGE="en_US.UTF-8",LANG="en_US.UTF-8",LC_ALL="en_US.UTF-8",LC_CTYPE="en_US.UTF-8"
autostart = true
autorestart = true
stopwaitsecs = 5
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:callback-receiver]
command = awx-manage run_callback_receiver
directory = /var/lib/awx
@@ -38,7 +50,7 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[group:tower-processes]
programs=celery,callback-receiver,channels-worker
programs=celery,celery-watcher,callback-receiver,channels-worker
priority=5
# TODO: Exit Handler