fix: Improve alembic migration reliability
This commit is contained in:
parent
96abc49dbe
commit
8a37a9570b
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue