From 5f209e9717819b014ae45f00742b49fee770e594 Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Thu, 19 Aug 2021 15:31:07 +1000 Subject: [PATCH] gravel: gstate: close kvstore on shutdown Without this, KV's cluster connect thread hangs around forever if you try to stop the aquarium service (well, it hangs around for a minute and a half until systemd gets sick of asking nicely and just kills the process - still, better to do this cleanly). Signed-off-by: Tim Serong --- src/gravel/controllers/gstate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gravel/controllers/gstate.py b/src/gravel/controllers/gstate.py index 80c179da6..36e7abccd 100644 --- a/src/gravel/controllers/gstate.py +++ b/src/gravel/controllers/gstate.py @@ -173,6 +173,7 @@ async def start(self) -> None: async def shutdown(self) -> None: self._is_shutting_down = True + await self._kvstore.close() logger.info("shutdown!") await self.tick_task