We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e5ce45 commit 0252338Copy full SHA for 0252338
1 file changed
tg_bot/modules/sql/__init__.py
@@ -6,7 +6,7 @@
6
7
8
def start() -> scoped_session:
9
- engine = create_engine(DB_URI, client_encoding="utf8", pool_pre_ping=True)
+ engine = create_engine(DB_URI, client_encoding="utf8", pool_pre_ping=True, pool_recycle=3600)
10
BASE.metadata.bind = engine
11
BASE.metadata.create_all(engine)
12
return scoped_session(sessionmaker(bind=engine, autoflush=False))
0 commit comments