celeryd.conf 838 B

1234567891011121314151617181920212223242526272829
  1. ; ==================================
  2. ; celery worker supervisor example
  3. ; ==================================
  4. [program:celery]
  5. ; Set full path to celery program if using virtualenv
  6. command=celery worker -A proj --loglevel=INFO
  7. directory=/path/to/project
  8. user=nobody
  9. numprocs=1
  10. stdout_logfile=/var/log/celery/worker.log
  11. stderr_logfile=/var/log/celery/worker.log
  12. autostart=true
  13. autorestart=true
  14. startsecs=10
  15. ; Need to wait for currently executing tasks to finish at shutdown.
  16. ; Increase this if you have very long running tasks.
  17. stopwaitsecs = 600
  18. ; When resorting to send SIGKILL to the program to terminate it
  19. ; send SIGKILL to its whole process group instead,
  20. ; taking care of its children as well.
  21. killasgroup=true
  22. ; Set Celery priority higher than default (999)
  23. ; so, if rabbitmq is supervised, it will start first.
  24. priority=1000