hobo-agent: kill celery agent after 100 tasks (#39131)

This commit is contained in:
Christophe Siraut 2020-01-21 09:39:28 +01:00
parent fa8b459c50
commit 128a8cd76a
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[program:hobo-agent]
; Concurrency set to 1 because there is no lock around calls to hobo_notify
command=python2.7 /usr/bin/celery worker --hostname=agent.%%h --app=hobo.agent.worker --loglevel=INFO --concurrency=1
command=python2.7 /usr/bin/celery worker --hostname=agent.%%h --app=hobo.agent.worker --loglevel=INFO --concurrency=1 --maxtasksperchild=100
environment=HOBO_AGENT_SETTINGS_FILE="/etc/hobo-agent/settings.py"
process_name=hobo-agent
user=hobo-agent