Skip to content

Commit 257e506

Browse files
authored
Merge pull request #10 from shaunaa126/main
fix: enable autocommit for postgres to avoid concurrent transaction issues
2 parents 03d83da + 42450d8 commit 257e506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/api/core/agent/persistence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def checkpointer_context(
3030
# A compatible psycopg connection is created via the connection pool to connect to the checkpointer.
3131
async with AsyncConnectionPool(
3232
conninfo=conn_str,
33-
kwargs=dict(prepare_threshold=None),
33+
kwargs=dict(prepare_threshold=None, autocommit=True),
3434
) as pool:
3535
checkpointer = AsyncPostgresSaver(pool)
3636
try:

0 commit comments

Comments
 (0)