Log the daemon killer exit properly: cancelled, not exited unexpectedly
@@ -216,10 +216,9 @@ async def daemon_killer(
# Sleep forever, or until cancelled, which happens when the operator begins its shutdown.
try:
await asyncio.Event().wait()
- except asyncio.CancelledError:
- pass
# Terminate all running daemons when the operator exits (and this task is cancelled).
+ finally:
coros = [
stop_daemon(daemon=daemon, settings=settings)
for memory in memories.iter_all_memories()
