Skip to content

feat(core): add robust health check endpoint with modular service checks#28

Merged
DimitrovK merged 1 commit intoCVImprover:mainfrom
mangopep:main
Sep 26, 2025
Merged

feat(core): add robust health check endpoint with modular service checks#28
DimitrovK merged 1 commit intoCVImprover:mainfrom
mangopep:main

Conversation

@mangopep
Copy link
Contributor

Adds a robust, modular health check endpoint to the core app. The endpoint checks database and Redis connectivity (required), and OpenAI API (optional, only if key is set). Returns a JSON status for each service and an overall health indicator.

  • Implements HealthCheckView in core/views.py using a registry-based approach for extensibility.
  • Adds /core/health/ route in core/urls.py.
  • DB and Redis are required for "healthy" status; OpenAI is optional.
  • Returns HTTP 200 if core services are healthy, with clear JSON output.
  • includes comprehensive tests for endpoint and error handling.
swagger

Closes #24

Copy link
Contributor

@DimitrovK DimitrovK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@DimitrovK DimitrovK merged commit 1dab995 into CVImprover:main Sep 26, 2025
1 check failed
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.

Create Health Check Endpoint

2 participants