celerybeat.conf 821 B

1234567891011121314151617181920212223242526272829
  1. ; ================================
  2. ; celery beat 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/celerybeat.conf
  7. ; instead!
  8. [program:celerybeat]
  9. command=celery beat -A myapp --schedule /var/lib/celery/celerybeat-schedule --loglevel=INFO
  10. ; remove the -A myapp argument if you are not using an 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/celerybeat.log
  17. stderr_logfile=/var/log/celerybeat.log
  18. autostart=true
  19. autorestart=true
  20. startsecs=10
  21. ; if rabbitmq is supervised, set its priority higher
  22. ; so it starts first
  23. priority=999