[program:celery_{{ deployment_name }}]
command=/var/www/vhosts/{{ deployment_name }}/venv/bin/python /var/www/vhosts/{{ deployment_name }}/code/manage.py celeryd --loglevel=INFO
directory=/var/www/vhosts/{{ deployment_name }}/code
user={{ deployment_name }}
numprocs=1
stdout_logfile=/var/www/vhosts/{{ deployment_name }}/logs/celeryd.log
stderr_logfile=/var/www/vhosts/{{ deployment_name }}/logs/celeryd.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
