From 04b7f7bc6fa44f594d085cd839a31d0b97b19891 Mon Sep 17 00:00:00 2001 From: Kayou Date: Thu, 13 May 2021 23:28:52 +0200 Subject: [PATCH] wait 1s for message in call_async_output --- moulinette/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/process.py b/moulinette/utils/process.py index e3a760d9..b8d5b915 100644 --- a/moulinette/utils/process.py +++ b/moulinette/utils/process.py @@ -77,7 +77,7 @@ def call_async_output(args, callback, **kwargs): while True: try: - callback, message = log_queue.get_nowait() + callback, message = log_queue.get(True, 1) except queue.Empty: break