celeryd.conf 976 B

123456789101112131415161718192021222324252627282930313233343536
  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. ; When resorting to send SIGKILL to the program to terminate it
  24. ; send SIGKILL to its whole process group instead,
  25. ; taking care of its children as well.
  26. killasgroup=true
  27. ; if rabbitmq is supervised, set its priority higher
  28. ; so it starts first
  29. priority=998