INNER CODE UNIT · Python

health

shenmintao/marginalia · src/marginalia/main.py:328

async def health() -> dict[str, str]:
    s = get_settings()
    return {
        "status": "ok",
        "version": __version__,
        "git_sha": s.build_sha,
        "build_id": s.build_id,
        "environment": s.app_env,
        "storage_backend": s.storage_backend,
    }


@app.get("/live", tags=["meta"])
async def live() -> dict[str, str]:
    """Process liveness only; never depends on downstream services."""
    return {"status": "ok", "version": __version__}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…