This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Add database connectivity to healthcheck endpoint #1079
Labels
🕹 aspect: interface
Concerns end-users' experience with the software
✨ goal: improvement
Improvement to an existing user-facing feature
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟨 priority: medium
Not blocking but should be addressed soon
Projects
Problem
The healtcheck endpoint should check that the database is accessible. If the db is inaccessible, the service is definitively not healthy.
Description
Add another check (in addition to the ES check) for the database connectivity. Calling
django.db.connection.ensure_connection()
should be sufficient. It raises an error when the database connection is unavailable.Alternatives
Additional context
The text was updated successfully, but these errors were encountered: