MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / readyz

Function readyz

crates/openshell-server/src/http.rs:86–88  ·  view source on GitHub ↗

Kubernetes readiness probe — reflects the cached background DB state.

(State(state): State<Arc<HealthRouterState>>)

Source from the content-addressed store, hash-verified

84
85/// Kubernetes readiness probe — reflects the cached background DB state.
86async fn readyz(State(state): State<Arc<HealthRouterState>>) -> impl IntoResponse {
87 render_response(&state.health.borrow())
88}
89
90/// Convenience alias of [`readyz`] for monitors that probe `/health`.
91async fn health(State(state): State<Arc<HealthRouterState>>) -> impl IntoResponse {

Callers

nothing calls this directly

Calls 1

render_responseFunction · 0.85

Tested by

no test coverage detected