MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / readiness

Function readiness

apps/api/src/controllers/healthcheck.controller.ts:73–79  ·  view source on GitHub ↗
(_request: FastifyRequest, reply: FastifyReply)

Source from the content-addressed store, hash-verified

71// Kubernetes readiness — shallow + shutdown-aware. Dependency health lives on
72// /healthcheck so a downstream blip cannot trigger mass pod restarts.
73export async function readiness(_request: FastifyRequest, reply: FastifyReply) {
74 if (isShuttingDown()) {
75 return reply.status(503).send({ ready: false, reason: 'shutting down' });
76 }
77
78 return reply.status(200).send({ ready: true });
79}

Callers

nothing calls this directly

Calls 2

isShuttingDownFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected