Skip to content
Snippets Groups Projects
Verified Commit e988dfbe authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Enable database health checks

parent d85a2c58
No related branches found
No related tags found
1 merge request!808Resolve "Prepare for Django 4.0"
......@@ -23,6 +23,8 @@ Changed
* Based on Django 4.0
* Use built-in Redis cache backend
* Introduce PBKDF2-SHA1 password hashing
* Persistent database connections are now health-checked as to not fail
requests
Fixed
~~~~~
......
......@@ -214,6 +214,7 @@ DATABASES = {
"HOST": _settings.get("database.host", "127.0.0.1"),
"PORT": _settings.get("database.port", "5432"),
"CONN_MAX_AGE": _settings.get("database.conn_max_age", None),
"CONN_HEALTH_CHECK": True,
"OPTIONS": _settings.get("database.options", {}),
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment