Skip to content

Commit deed6a6

Browse files
authored
fix: patch db init bug (#2657)
1 parent 23ac226 commit deed6a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

letta/server/db.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,17 @@ def _build_sqlalchemy_engine_args(self, *, is_async: bool) -> dict:
152152
if pool_cls:
153153
base_args["poolclass"] = pool_cls
154154

155-
if not use_null_pool and not is_async:
155+
if not use_null_pool:
156156
base_args.update(
157157
{
158158
"pool_size": settings.pg_pool_size,
159159
"max_overflow": settings.pg_max_overflow,
160160
"pool_timeout": settings.pg_pool_timeout,
161161
"pool_recycle": settings.pg_pool_recycle,
162-
"pool_use_lifo": settings.pool_use_lifo,
163162
}
164163
)
164+
if not is_async:
165+
base_args["pool_use_lifo"] = settings.pool_use_lifo
165166

166167
return base_args
167168

0 commit comments

Comments
 (0)