Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: force statement_timeout=0 on all database connections (#9184)

Kian Jones3b5251fbd613
diff --git a/letta/server/db.py b/letta/server/db.py
index 35ca098e7..bdb41b05b 100644
--- a/letta/server/db.py
+++ b/letta/server/db.py
@@ -44,6 +44,7 @@ if not settings.disable_sqlalchemy_pooling:
"prepared_statement_name_func": lambda: f"__asyncpg_{uuid.uuid4()}__",
"statement_cache_size": 0,
"prepared_statement_cache_size": 0,
+ "server_settings": {"statement_timeout": "0"},
}
# Only add SSL if not already specified in connection string
if "sslmode" not in async_pg_uri and "ssl" not in async_pg_uri: