From a525018fb1ef0587726db8738645b613ddda77ae Mon Sep 17 00:00:00 2001 From: hkc Date: Sun, 7 Jul 2024 21:33:38 +0300 Subject: [PATCH] Why are we shutting down? --- async-bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/async-bot.py b/async-bot.py index f9464b7..44cb119 100644 --- a/async-bot.py +++ b/async-bot.py @@ -200,6 +200,7 @@ class AsyncBotManager: print(f"Alive workers: {len(self._active)}") if len(self._active) < 2: + print("Too few workers, dying!") self._shutdown = True return @@ -424,6 +425,7 @@ async def amain() -> None: for ret in res: print("RETURN", repr(ret)) + print("Shutting down...") mgr._shutdown = True