celeryd.conf 907 B

1234567891011121314151617181920212223242526272829303132
  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. ; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
  23. stopasgroup=true
  24. ; Set Celery priority higher than default (999)
  25. ; so, if rabbitmq is supervised, it will start first.
  26. priority=1000