# Managed by ansible, do not edit. author "Milo Casagrande " 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