celeryd.conf 972 B

12345678910111213141516171819202122232425262728293031323334
  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. ; Alternatively,
  8. ;command=celery --app=your_app.celery:app worker --loglevel=INFO -n worker.%%h
  9. ; Or run a script
  10. ;command=celery.sh
  11. directory=/path/to/project
  12. user=nobody
  13. numprocs=1
  14. stdout_logfile=/var/log/celery/worker.log
  15. stderr_logfile=/var/log/celery/worker.log
  16. autostart=true
  17. autorestart=true
  18. startsecs=10
  19. ; Need to wait for currently executing tasks to finish at shutdown.
  20. ; Increase this if you have very long running tasks.
  21. stopwaitsecs = 600
  22. ; When resorting to send SIGKILL to the program to terminate it
  23. ; send SIGKILL to its whole process group instead,
  24. ; taking care of its children as well.
  25. killasgroup=true
  26. ; Set Celery priority higher than default (999)
  27. ; so, if rabbitmq is supervised, it will start first.
  28. priority=1000