kopia lustrzana https://github.com/glidernet/ogn-python
20 wiersze
575 B
Plaintext
20 wiersze
575 B
Plaintext
[program:celery]
|
|
command=/home/pi/ogn-python/venv/bin/celery -A celery_app worker -l info
|
|
directory=/home/pi/ogn-python
|
|
environment=FLASK_APP=ogn_python.py
|
|
|
|
user=pi
|
|
numprocs=1
|
|
stdout_logfile=/var/log/supervisor/celery_worker.log
|
|
stderr_logfile=/var/log/supervisor/celery_worker.log
|
|
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.
|
|
stopasgroup=true
|