Skip to content

Instantly share code, notes, and snippets.

@channeng
Created October 23, 2017 15:44
Show Gist options
  • Select an option

  • Save channeng/087b39f277dbf4a1eef5f8070dd9aaa0 to your computer and use it in GitHub Desktop.

Select an option

Save channeng/087b39f277dbf4a1eef5f8070dd9aaa0 to your computer and use it in GitHub Desktop.
; ================================
; 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