Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: nullpool asyncpg timeout (#2556)
cthomas6928dc1705b4
diff --git a/letta/server/db.py b/letta/server/db.pyindex 1471af174..5816b6dca 100644--- a/letta/server/db.py+++ b/letta/server/db.py@@ -167,7 +167,6 @@ class DatabaseRegistry:base_args.update({"pool_use_lifo": settings.pool_use_lifo,- "pool_timeout": settings.pg_pool_timeout,})@@ -175,8 +174,8 @@ class DatabaseRegistry:# For asyncpg, statement_cache_size should be in connect_argsbase_args.update({- "pool_timeout": settings.pg_pool_timeout,"connect_args": {+ "timeout": settings.pg_pool_timeout,"prepared_statement_name_func": lambda: f"__asyncpg_{uuid.uuid4()}__","statement_cache_size": 0,"prepared_statement_cache_size": 0,