fix: Improve alembic migration reliability

This commit is contained in:
Vineeth Voruganti 2025-10-27 16:58:10 -04:00
parent 96abc49dbe
commit 8a37a9570b
1 changed files with 4 additions and 1 deletions

View File

@ -94,7 +94,10 @@ def run_migrations_online() -> None:
prefix="sqlalchemy.",
echo=False,
poolclass=pool.NullPool,
connect_args={"prepare_threshold": None},
connect_args={
"prepare_threshold": None,
"options": "-c statement_timeout=300000", # 5 minutes in milliseconds
},
)
with connectable.connect() as connection: