Skip to content

Commit

Permalink
Merge pull request #33 from mlibrary/fix-mysql-disconnects
Browse files Browse the repository at this point in the history
Change to Pessimistic pool_pre_ping
  • Loading branch information
niquerio authored Dec 9, 2024
2 parents ce86f56 + bc6ce10 commit dc40696
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 @@ -14,7 +14,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=1800)
engine = create_engine(S.mysql_database, pool_pre_ping=True)

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

Expand Down

0 comments on commit dc40696

Please sign in to comment.