Skip to content

Commit

Permalink
Enable db connection health checks by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 12, 2024
1 parent cdf56e8 commit afbac4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bolt-db/bolt/db/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
DATABASES = {
"default": database_url.parse(
environ["DATABASE_URL"],
# Enable persistent connections by default
conn_max_age=int(environ.get("DATABASE_CONN_MAX_AGE", 600)),
conn_health_checks=environ.get("DATABASE_CONN_HEALTH_CHECKS", "true").lower() in [
"true",
"1",
],
)
}

Expand Down

0 comments on commit afbac4c

Please sign in to comment.