mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 09:05:17 +00:00
46e97a08cc
* upgrade RQ to v1.5 * set job's started_at * update healthcheck to match string worker names * delay worker healthcheck for 5 minutes from start to allow enough time to load in case many workers try to load simultaneously * log when worker cannot be found
33 lines
760 B
Plaintext
33 lines
760 B
Plaintext
[supervisord]
|
|
logfile=/dev/null
|
|
pidfile=/tmp/supervisord.pid
|
|
nodaemon=true
|
|
|
|
[unix_http_server]
|
|
file = /tmp/supervisor.sock
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[program:worker]
|
|
command=./manage.py rq worker %(ENV_QUEUES)s
|
|
process_name=%(program_name)s-%(process_num)s
|
|
numprocs=%(ENV_WORKERS_COUNT)s
|
|
directory=/app
|
|
stopsignal=TERM
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=300
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[eventlistener:worker_healthcheck]
|
|
serverurl=AUTO
|
|
command=./manage.py rq healthcheck
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
events=TICK_60 |