mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-23 16:12:25 +02:00
Check if conn is alive (#381)
This commit is contained in:
@@ -52,8 +52,8 @@ class AsyncSqliteSaver(BaseCheckpointSaver, AbstractAsyncContextManager):
|
||||
async def setup(self) -> None:
|
||||
if self.is_setup:
|
||||
return
|
||||
|
||||
await self.conn
|
||||
if not self.conn.is_alive():
|
||||
await self.conn
|
||||
async with self.conn.executescript(
|
||||
"""
|
||||
CREATE TABLE IF NOT EXISTS checkpoints (
|
||||
|
||||
Reference in New Issue
Block a user