celeryd.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ; ==================================
  2. ; celery worker 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=celery worker -A proj.tasks:app --loglevel=INFO
  10. ; remove -A argument if you don't use a celery app instance.
  11. ; Set PYTHONPATH to the directory containing app/celeryconfig.py
  12. environment=PYTHONPATH=/path/to/project
  13. directory=/path/to/project
  14. user=nobody
  15. numprocs=1
  16. stdout_logfile=/var/log/celeryd.log
  17. stderr_logfile=/var/log/celeryd.log
  18. autostart=true
  19. autorestart=true
  20. startsecs=10
  21. ; Need to wait for currently executing tasks to finish at shutdown.
  22. ; Increase this if you have very long running tasks.
  23. stopwaitsecs = 600
  24. ; When resorting to send SIGKILL to the program to terminate it
  25. ; send SIGKILL to its whole process group instead,
  26. ; taking care of its children as well.
  27. killasgroup=true
  28. ; if rabbitmq is supervised, set its priority higher
  29. ; so it starts first
  30. priority=998