increase idle_in_transaction_session_timeout from 10s to 30s

master
Aevann 2023-07-28 18:33:02 +03:00
parent 3fc64da0e2
commit 5e15d64f07
1 changed files with 1 additions and 1 deletions

View File

@ -1138,5 +1138,5 @@ class OrgyTypes:
from sqlalchemy.engine.create import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
engine = create_engine(environ.get("DATABASE_URL").strip(), connect_args={"options": "-c statement_timeout=5000 -c idle_in_transaction_session_timeout=10000"})
engine = create_engine(environ.get("DATABASE_URL").strip(), connect_args={"options": "-c statement_timeout=5000 -c idle_in_transaction_session_timeout=30000"})
db_session = scoped_session(sessionmaker(bind=engine))