blob: a7c64a2b351032008bafc1fa0f99b68d45866e1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Managed by ansible, do not edit.
author "Milo Casagrande <milo.casagrande@linaro.org>"
description "Configuration to run celery at startup."
start on started kernelci-backend
stop on stopping kernelci-backend
respawn
respawn limit 10 5
kill timeout 6
limit nofile 4096 65536
setuid {{ app_user }}
setgid {{ app_user }}
chdir {{ install_base }}/{{ hostname }}/app
script
if [ -d {{ install_base }}/.venv/{{ hostname }} ]; then
{{ install_base }}/.venv/{{ hostname }}/bin/python -OO -R {{ install_base }}/.venv/{{ hostname }}/bin/celery worker -Ofair --without-gossip --autoscale=4,1 --logfile=/var/log/celery/%h%I.log --loglevel=INFO --app=taskqueue
else
exec celery worker -Ofair --without-gossip --autoscale=4,1 --logfile=/var/log/celery/%h%I.log --loglevel=INFO --app=taskqueue
fi
end script
|