celeryd.conf 804 B

12345678910111213141516171819202122232425262728293031
  1. ; ============================
  2. ; celeryd supervisor example
  3. ; ============================
  4. ; NOTE: If you're using Django, you shouldn't use this file.
  5. ; Use
  6. ; http://github.com/celery/django-celery/tree/master/extra/supervisord/celeryd.conf
  7. ; instead!
  8. [program:celery]
  9. command=celeryd --loglevel=INFO
  10. ; Set PYTHONPATH to the directory containing celeryconfig.py
  11. environment=PYTHONPATH=/path/to/project
  12. directory=/path/to/project
  13. user=nobody
  14. numprocs=1
  15. stdout_logfile=/var/log/celeryd.log
  16. stderr_logfile=/var/log/celeryd.log
  17. autostart=true
  18. autorestart=true
  19. startsecs=10
  20. ; Need to wait for currently executing tasks to finish at shutdown.
  21. ; Increase this if you have very long running tasks.
  22. stopwaitsecs = 600
  23. ; if rabbitmq is supervised, set its priority higher
  24. ; so it starts first
  25. priority=998