Skip to content

[codex] Add container health check endpoint#754

Draft
dorakingx wants to merge 1 commit into
imDarshanGK:mainfrom
dorakingx:codex/add-healthcheck-endpoint
Draft

[codex] Add container health check endpoint#754
dorakingx wants to merge 1 commit into
imDarshanGK:mainfrom
dorakingx:codex/add-healthcheck-endpoint

Conversation

@dorakingx
Copy link
Copy Markdown

Summary

  • add a lightweight /healthz endpoint for container liveness checks
  • wire Dockerfile and docker-compose backend health checks to /healthz
  • document the container health-check URL in the README
  • add coverage for the new endpoint

Why

Issue #474 asks for a health-check endpoint for container orchestration. The existing /health response is more descriptive, while /healthz gives orchestrators a minimal stable target that only needs to return 200 and { "status": "ok" }.

Validation

  • git diff --check
  • FastAPI TestClient smoke check for /health, /healthz, and /ping
  • Parsed docker-compose.yml and verified the backend healthcheck points at /healthz

Note: running the repo's pytest command locally is blocked by missing native libmagic on this machine (ImportError: failed to find libmagic). The endpoint was still validated with TestClient using a local import stub for the unrelated magic dependency.

Closes #474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add health-check endpoint for container orchestration

1 participant