123456789101112131415161718192021222324252627282930313233343536 |
- ; ============================
- ; celeryd supervisor example
- ; ============================
- ; NOTE: If you're using Django, you shouldn't use this file.
- ; Use
- ; http://github.com/celery/django-celery/tree/master/extra/supervisord/celeryd.conf
- ; instead!
- [program:celery]
- command=celeryd --loglevel=INFO
- ; Set PYTHONPATH to the directory containing celeryconfig.py
- environment=PYTHONPATH=/path/to/project
- directory=/path/to/project
- user=nobody
- numprocs=1
- stdout_logfile=/var/log/celeryd.log
- stderr_logfile=/var/log/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
- ; 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
|