Implement /health endpoint in API server #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Implement a new
/healthendpoint to provide a lightweight liveness probe for Kubernetes deployments. This avoids the redirection issues caused by the existing/pingroute.Context
The current
/pingroute is used by the frontend and returns a 302 on auth, which breaks Kubernetes probes.Tasks
GET /healthinapi/routes/health.pyreturning{"status":"ok","uptime_s": <int>}./api/app.pybefore auth middleware to prevent redirects.tests/test_health.py(200 + JSON shape).api/README.md.Notes
Do not reuse
/ping— it has frontend callers.