Created
October 23, 2017 15:44
-
-
Save channeng/087b39f277dbf4a1eef5f8070dd9aaa0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; ================================ | |
| ; celery beat supervisor | |
| ; ================================ | |
| [program:celerybeat] | |
| command=/path/to/home/.virtualenvs/celery_env/bin/celery beat -A app.celery --schedule=/tmp/celerybeat-schedule --loglevel=INFO --pidfile=/tmp/celerybeat.pid | |
| directory=/path/to/home/celery-scheduler | |
| user=root | |
| numprocs=1 | |
| stdout_logfile=/var/log/celery/beat.log | |
| stderr_logfile=/var/log/celery/beat.log | |
| autostart=true | |
| autorestart=true | |
| startsecs=10 | |
| ; Causes supervisor to send the termination signal (SIGTERM) to the whole process group. | |
| stopasgroup=true | |
| ; if rabbitmq is supervised, set its priority higher | |
| ; so it starts first | |
| priority=999 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment