Why are we shutting down?
This commit is contained in:
parent
d5ac5e8583
commit
a525018fb1
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue