backend/config/supervisor/celery_supervisor.conf

25 lines
687 B
Plaintext
Raw Normal View History

2022-10-31 08:20:43 +00:00
[program:celery_zierle_training]
2022-10-31 08:20:43 +00:00
directory=/home/marc/www/backend
user=www-data
numprocs=1
2022-10-31 08:20:43 +00:00
stdout_logfile=/var/log/celery/worker_prod.log
stderr_logfile=/var/log/celery/worker_prod.log
autostart=true
autorestart=true
startsecs=10
2022-10-31 08:20:43 +00:00
command=/home/marc/www/backend/env/bin/python3 -m celery -A config worker --loglevel=INFO
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 60
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
stopasgroup=true
; Set Celery priority higher than default (999)
; so, if rabbitmq is supervised, it will start first.
priority=1000