Skip to content

Commit

Permalink
pool_pre_ping=True,
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Nov 14, 2023
1 parent e8775d5 commit c552fed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
pool_timeout=settings.POOL_TIMEOUT,
pool_recycle=settings.POOL_RECYCLE,
echo=(settings.ENV != "PRD"),
pool_pre_ping=True,
)

# Create a session factory
SessionFactory = sessionmaker(
bind=engine,
Expand Down

0 comments on commit c552fed

Please sign in to comment.