From 9a5af434e46a4f340bf4e570e49102ada40a1285 Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:20:27 +0200 Subject: [PATCH] trying out connection open/close on ci/cd --- cognee/infrastructure/databases/graph/kuzu/adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cognee/infrastructure/databases/graph/kuzu/adapter.py b/cognee/infrastructure/databases/graph/kuzu/adapter.py index b25f144e0..34300f7d5 100644 --- a/cognee/infrastructure/databases/graph/kuzu/adapter.py +++ b/cognee/infrastructure/databases/graph/kuzu/adapter.py @@ -223,7 +223,7 @@ class KuzuAdapter(GraphDBInterface): logger.error(f"Query execution failed: {str(e)}") raise - if cache_config.caching: + if not cache_config.caching: async with self._connection_change_lock: self.open_connections += 1 if self._is_closed: @@ -233,7 +233,7 @@ class KuzuAdapter(GraphDBInterface): result = await loop.run_in_executor(self.executor, blocking_query) - if cache_config.caching: + if not cache_config.caching: async with self._connection_change_lock: self.open_connections -= 1 logger.info(f"Opened connections after closing {self.open_connections}")