| 1 |
; ================================ |
| 2 |
; celery beat supervisor example |
| 3 |
; ================================ |
| 4 |
|
| 5 |
[program:celerybeat] |
| 6 |
; Set full path to celery program if using virtualenv |
| 7 |
command=celery -A myapp beat --schedule /var/lib/celery/beat.db --loglevel=INFO |
| 8 |
|
| 9 |
; remove the -A myapp argument if you aren't using an app instance |
| 10 |
|
| 11 |
directory=/path/to/project |
| 12 |
user=nobody |
| 13 |
numprocs=1 |
| 14 |
stdout_logfile=/var/log/celery/beat.log |
| 15 |
stderr_logfile=/var/log/celery/beat.log |
| 16 |
autostart=true |
| 17 |
autorestart=true |
| 18 |
startsecs=10 |
| 19 |
|
| 20 |
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group. |
| 21 |
stopasgroup=true |
| 22 |
|
| 23 |
; if rabbitmq is supervised, set its priority higher |
| 24 |
; so it starts first |
| 25 |
priority=999 |