trying out connection open/close on ci/cd
This commit is contained in:
parent
68a8977301
commit
9a5af434e4
1 changed files with 2 additions and 2 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue