|
@@ -2,24 +2,17 @@
|
|
; celery beat supervisor example
|
|
; celery beat supervisor example
|
|
; ================================
|
|
; ================================
|
|
|
|
|
|
-; NOTE: If you're using Django, you shouldn't use this file.
|
|
|
|
-; Use
|
|
|
|
-; http://github.com/celery/django-celery/tree/master/extra/supervisord/celerybeat.conf
|
|
|
|
-; instead!
|
|
|
|
-
|
|
|
|
[program:celerybeat]
|
|
[program:celerybeat]
|
|
-command=celery beat -A myapp --schedule /var/lib/celery/celerybeat-schedule --loglevel=INFO
|
|
|
|
|
|
+; Set full path to celery program if using virtualenv
|
|
|
|
+command=celery beat -A myapp --schedule /var/lib/celery/beat.db --loglevel=INFO
|
|
|
|
|
|
; remove the -A myapp argument if you are not using an app instance
|
|
; remove the -A myapp argument if you are not using an app instance
|
|
|
|
|
|
-; Set PYTHONPATH to the directory containing app/celeryconfig.py
|
|
|
|
-environment=PYTHONPATH=/path/to/project
|
|
|
|
-
|
|
|
|
directory=/path/to/project
|
|
directory=/path/to/project
|
|
user=nobody
|
|
user=nobody
|
|
numprocs=1
|
|
numprocs=1
|
|
-stdout_logfile=/var/log/celerybeat.log
|
|
|
|
-stderr_logfile=/var/log/celerybeat.log
|
|
|
|
|
|
+stdout_logfile=/var/log/celery/beat.log
|
|
|
|
+stderr_logfile=/var/log/celery/beat.log
|
|
autostart=true
|
|
autostart=true
|
|
autorestart=true
|
|
autorestart=true
|
|
startsecs=10
|
|
startsecs=10
|