;
; CELERY (BACKGROUND TASKS)
;
[program:%(env_name)-app-celery]
autostart=true
autorestart=true
user=%(www_user)
command=%(workspace_root)/ve/bin/python %(workspace_root)/app/
manage.py celery worker -A app —concurrency=1 —settings=app.settings.%(env_name)
environment=DJANGO_SETTINGS_MODULE="app.settings.%(env_name)",PYTHONPATH="%(workspace_root)/ve"
directory=%(workspace_root)/app
numprocs=1
startsecs=10
stopwaitsecs = 600
stdout_logfile=%(log_root)/celery.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=%(log_root)/celery.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB