PrefectHQ
prefect
BlogDocsChangelog

Add healthcheck support for Prefect server services

#19009
Comparing
simple-services-healthcheck
(
9b987b8
) with
main
(
bd1281a
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
458.2 µs456.4 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s

Ignored

bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
105.9 ms106 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-7%
5.9 ms6.4 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
167.5 ms166.9 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+15%
4 ms3.4 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-8%
162 ms175.7 ms

Commits

Click on a commit to change the comparison range
Base
main
bd1281a
-0.21%
Add 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.
3c61774
15 days ago
by zzstoatzz
+0.45%
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
9b987b8
15 days ago
by zzstoatzz
© 2025 CodSpeed Technology
Home Terms Privacy Docs