mirror of
https://github.com/MarcZierle/photo-log-backend.git
synced 2025-01-04 05:37:58 +00:00
25 lines
701 B
Plaintext
25 lines
701 B
Plaintext
[program:celery_zierle_training_staging]
|
|
|
|
directory=/home/marc/www-staging/backend
|
|
|
|
user=www-data
|
|
numprocs=1
|
|
stdout_logfile=/var/log/celery/worker.log
|
|
stderr_logfile=/var/log/celery/worker.log
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=10
|
|
|
|
command=/home/marc/www-staging/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
|