Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- dev
- fix_db_connection_expiry

jobs:
build-and-deploy:
Expand Down
2 changes: 1 addition & 1 deletion app/utils/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, url: str, tables: list):

def init_database(self):
try:
self.engine = create_engine(self.url, echo=True)
self.engine = create_engine(self.url, echo=True, pool_pre_ping=True, pool_recycle=1800, pool_timeout=30)
metadata = MetaData()
metadata.reflect(self.engine, only=self.tables)
self.Base.prepare(self.engine, reflect=True)
Expand Down