chore: switch health check to lightweight /health endpoint #119
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#119
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The Dockerfile HEALTHCHECK currently hits
/api/v3/current, which makes a DB query on every check. If the database is temporarily slow, Docker may restart a healthy container.Task
Switch the HEALTHCHECK to use a lightweight
/healthendpoint (verify it exists or create one). The endpoint should return 200 without hitting the database.PR #125 opened: #125
Added
GET /healthtoapp/main.py(returns{"status": "ok"}, no DB queries) and updated the DockerfileHEALTHCHECKto use/healthinstead of/api/v3/current.