Skip to content

Commit

Permalink
set pool recycle
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik committed Jun 4, 2024
1 parent b0e2dba commit 9c431ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion align_data/db/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
logger = logging.getLogger(__name__)

# We create a single engine for the entire application
engine = create_engine(DB_CONNECTION_URI, echo=False, pool_pre_ping=True)
engine = create_engine(DB_CONNECTION_URI, echo=False, pool_pre_ping=True, pool_recycle=1800)


@contextmanager
Expand Down

0 comments on commit 9c431ee

Please sign in to comment.