From 493ad8f5e74707bc6864d73599fb65f0399bc7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 23 Dec 2018 11:18:05 +0100 Subject: [PATCH] add hobo-agent.restart command --- eoptasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eoptasks.py b/eoptasks.py index 550f5b3..515971d 100755 --- a/eoptasks.py +++ b/eoptasks.py @@ -235,6 +235,9 @@ else: # combo.reload is useful to get a new {% start_timestamp %} after an # upgrade of publik-base-theme. 'combo.reload': '''sudo service combo reload; /bin/true''', + # hobo-agent.restart is the fastest way to get the number of threads + # used by celery under control :/ + 'hobo-agent.restart': '''test -e /etc/hobo-agent/settings.py && sudo supervisorctl restart hobo-agent''', }.get(args.cmd, args.cmd) status_window = session.attached_window