From 5be968123fb4ac1934055b6520ffa3fd549f61fc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 18 Jul 2021 22:17:57 -0400 Subject: [PATCH] Readd 1 second queue get timeout Otherwise daemon stops will sometimes inexplicably block. --- daemon-common/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/log.py b/daemon-common/log.py index 02ea1a6d..e1375a88 100644 --- a/daemon-common/log.py +++ b/daemon-common/log.py @@ -192,7 +192,7 @@ class ZookeeperLogger(Thread): while self.running: # Get a new message try: - message = self.queue.get() + message = self.queue.get(timeout=1) if not message: continue except Exception: