Guest User

Untitled

a guest
Oct 24th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ; ==================================
  2. ; celery worker supervisor
  3. ; ==================================
  4.  
  5. [program:celery]
  6. command=/path/to/home/.virtualenvs/celery_env/bin/celery worker -A app.celery --loglevel=INFO
  7. directory=/path/to/home/celery-scheduler
  8.  
  9. user=root
  10. numprocs=1
  11. stdout_logfile=/var/log/celery/worker.log
  12. stderr_logfile=/var/log/celery/worker.log
  13. autostart=true
  14. autorestart=true
  15. startsecs=10
  16.  
  17. ; Need to wait for currently executing tasks to finish at shutdown.
  18. ; Increase this if you have very long running tasks.
  19. stopwaitsecs = 600
  20.  
  21. ; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
  22. stopasgroup=true
  23.  
  24. ; Set Celery priority higher than default (999)
  25. ; so, if rabbitmq is supervised, it will start first.
  26. priority=1000
Add Comment
Please, Sign In to add comment