ogn-python/deployment/supervisor/celeryd.conf

20 wiersze
585 B
Plaintext
Czysty Zwykły widok Historia

2019-09-01 10:14:41 +00:00
[program:celery]
2019-09-21 14:49:27 +00:00
command=/home/pi/ogn-python/venv/bin/celery -A celery_worker.celery worker -l info
directory=/home/pi/ogn-python
2019-09-21 14:49:27 +00:00
environment=FLASK_APP=ogn_python.py
2019-09-01 10:14:41 +00:00
user=pi
2019-09-01 10:14:41 +00:00
numprocs=1
stdout_logfile=/var/log/supervisor/celery_worker.log
stderr_logfile=/var/log/supervisor/celery_worker.log
2019-09-01 10:14:41 +00:00
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
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
2019-09-21 14:49:27 +00:00
stopasgroup=true