Added celery services

pull/484/head
Piero Toffanin 2018-06-30 12:13:53 -04:00
rodzic 29f1e5c511
commit d3b7a2fd5b
2 zmienionych plików z 32 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,16 @@
[Unit]
Description=Start WebODM Celery Service Container
Requires=webodm-nginx.service
[Service]
Type=simple
User=odm
Group=odm
PIDFile=/run/webodm-celery.pid
WorkingDirectory=/webodm
ExecStart=/webodm/python3-venv/bin/celery -A worker worker --autoscale 8,2 --max-tasks-per-child 1000 --loglevel=warn
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target

Wyświetl plik

@ -0,0 +1,16 @@
[Unit]
Description=Start WebODM Celery Scheduler Service Container
Requires=webodm-nginx.service
[Service]
Type=simple
User=odm
Group=odm
PIDFile=/run/webodm-celerybeat.pid
WorkingDirectory=/webodm
ExecStart=/webodm/python3-venv/bin/celery -A worker beat
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target