Why are we shutting down?

This commit is contained in:
Casey 2024-07-07 21:33:38 +03:00
parent d5ac5e8583
commit a525018fb1
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 0 deletions

View File

@ -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