fix: ensure connection check before executing checkpoint in KuzuAdapter
This commit is contained in:
parent
4d021ec970
commit
e912b6f37e
1 changed files with 3 additions and 2 deletions
|
|
@ -138,8 +138,9 @@ class KuzuAdapter(GraphDBInterface):
|
||||||
|
|
||||||
s3_file_storage = S3FileStorage("")
|
s3_file_storage = S3FileStorage("")
|
||||||
|
|
||||||
async with self.KUZU_ASYNC_LOCK:
|
if self.connection:
|
||||||
self.connection.execute("CHECKPOINT;")
|
async with self.KUZU_ASYNC_LOCK:
|
||||||
|
self.connection.execute("CHECKPOINT;")
|
||||||
|
|
||||||
s3_file_storage.s3.put(self.temp_graph_file, self.db_path, recursive=True)
|
s3_file_storage.s3.put(self.temp_graph_file, self.db_path, recursive=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue