Skip to content

Commit

Permalink
Merge pull request #20 from mlibrary/mysql-stale-connections-fix
Browse files Browse the repository at this point in the history
lowering the pool_recycle time
  • Loading branch information
niquerio authored Nov 15, 2024
2 parents 5d38aa9 + 29ed214 commit c0d2c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aim/digifeeds/database/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
if S.ci_on: # pragma: no cover
engine = create_engine(S.test_database)
else: # pragma: no cover
engine = create_engine(S.mysql_database, pool_recycle=3600)
engine = create_engine(S.mysql_database, pool_recycle=1800)

SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)

Expand Down

0 comments on commit c0d2c1d

Please sign in to comment.