; ==================================
;  celery worker supervisor example
; ==================================

[program:celery-worker1]
; Set full path to celery program if using virtualenv
command=/home/<user>/webapp/env/bin/celery worker -A webapp --concurrency=10 -n worker1 --loglevel=INFO

directory=/home/<user>/webapp/releases/current/webapp
user=<user>
group=<user>
;numprocs=2
stdout_logfile=/var/log/celery/distributedjmeter-worker1.log
stderr_logfile=/var/log/celery/distributedjmeter-worker1.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
