/ready Readiness Endpoint #81
Loading…
Add table
Add a link
Reference in a new issue
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?
Tasks
GET /readyendpoint tointernal/api/handlers/health.goSELECT 1with a 2s timeout — fail if errorscheduler.IsRunning() boolmethod — fail if not runningpool.IsHealthy() boolmethod — fail if pool is shut down200 OK503 Service Unavailable/readyis a public endpoint (no auth required)Acceptance Criteria
/readyreturns200when all components are healthy/readyreturns503when the DB is down/readyreturns503when the scheduler is stopped/readyis usable as a Docker health check and Kubernetes readiness probe