Skip to content

Instantly share code, notes, and snippets.

@Suor
Created May 6, 2015 06:50
Show Gist options
  • Save Suor/a984a9c8fb3d78310fbb to your computer and use it in GitHub Desktop.
Save Suor/a984a9c8fb3d78310fbb to your computer and use it in GitHub Desktop.
[program:celery]
; Full path to use virtualenv, honcho to load .env
command=/home/ubuntu/venv/bin/honcho run celery -A stargeo worker -l info --no-color
directory=/home/ubuntu/app
environment=PATH="/home/ubuntu/venv/bin:%(ENV_PATH)s"
user=ubuntu
numprocs=1
stdout_logfile=/home/ubuntu/logs/celery.log
stderr_logfile=/home/ubuntu/logs/celery.err
autostart=true
autorestart=true
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
killasgroup=true
; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment