kopia lustrzana https://github.com/OpenDroneMap/WebODM
Added celery services
rodzic
29f1e5c511
commit
d3b7a2fd5b
|
@ -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
|
|
@ -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
|
Ładowanie…
Reference in New Issue