Skip to content

Commit

Permalink
Remove pool_recycle, no longer needed with pool_pre_ping.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Nov 27, 2024
1 parent 9738284 commit d3af53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/consdb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def setup_postgres() -> sqlalchemy.Engine:
else:
pg_url = os.environ["POSTGRES_URL"]
logger.info(f"Using POSTGRES_URL {pg_url}")
engine = sqlalchemy.create_engine(pg_url, pool_recycle=3600, pool_pre_ping=True)
engine = sqlalchemy.create_engine(pg_url, pool_pre_ping=True)
if pg_url.startswith("sqlite:///"):
# For unit tests
start_pos = len("sqlite:///")
Expand Down

0 comments on commit d3af53c

Please sign in to comment.