dev/hdalab/supervisor.d/celeryd-hdalab.ini
author ymh <ymh.work@gmail.com>
Fri, 13 Apr 2018 15:41:00 +0200
branchdocumentation
changeset 697 7cb2daf6da35
parent 686 385e3a12ee27
permissions -rw-r--r--
add info on models in doc

[program:celeryd-hdalab]
; Set full path to celery program if using virtualenv
command=/usr/local/bin/celery worker -A hdalab --loglevel=INFO

directory=/var/lib/hdalab
user=www
numprocs=1
stdout_logfile=/var/log/hdalab/celery/hdalab-worker.log
stderr_logfile=/var/log/hdalab/celery/hdalab-worker.log
autostart=true
autorestart=true
startsecs=10

; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600

; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
killasgroup=true

; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=998