Commits
Click on a commit to change the comparison rangeAdd healthcheck support for Prefect server services
Closes #18997
This PR adds a simple healthcheck endpoint for background services to enable Docker health monitoring.
Changes:
- Add --with-healthcheck flag to 'prefect server services start' command
- Start HTTP server on port 8080 that responds with 200 OK to /health endpoint
- Add minimal test coverage for healthcheck functionality
The implementation follows the minimal approach similar to the worker healthcheck pattern, providing a simple HTTP endpoint that returns 200 when services are running. Fix: Use FastAPI/uvicorn for healthcheck like worker implementation
- Create proper healthcheck server module using FastAPI/uvicorn
- Follow exact pattern from worker healthcheck implementation
- Manager process now handles healthcheck in background mode
- Returns JSON response like worker healthcheck
- Tests updated to expect JSON response