You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: describe the health endpoints the daemon actually serves
API.md and PROJECT_INDEX.md documented GET /health/liveness and
/health/readiness. Neither exists: the daemon serves /health, /healthz,
/ready and /live. Both response shapes were wrong too.
The OpenAPI description of /health did not match the served body either.
It named uptime instead of uptimeSeconds, described checks as booleans
where each is an object, omitted timestamp and system, and documented a
503 that /health never returns -- it always answers 200 and puts the
verdict in the body. All four endpoints are now specified against shared
HealthResponse, HealthCheck and SystemInfo schemas.
Also corrected: the scheduler check is no longer a stub, so it reports
degraded and names the jobs it refused; NewHealthChecker takes the
scheduler and the build's version rather than a hardcoded "1.0.0"; the
checker has a Stop; and waiting on ShutdownChan is not waiting for
shutdown to finish -- that is Done.
durationMs carries nanoseconds, not milliseconds: it serialises a Go
time.Duration. Stated wherever the field appears. Renaming the field
would break every existing consumer, so it stays.
Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
0 commit comments