quality / commitlint (push) Skipped
CD / update-wiki (push) Failing after 8s
quality / changes (push) Successful in 5s
quality / docker-check (push) Skipped
quality / web (push) Successful in 50s
quality / api (push) Successful in 41s
CD / quality (push) Successful in 1m40s
CD / publish (push) Successful in 1m33s
- Introduced origin health check routes and integrated them into the application. - Updated health check configuration to include success recovery thresholds. - Expanded error handling with new error codes for health check failures. - Added new service routes for managing health checks, including creation and listing. - Improved health check service logic to track consecutive successes and failures. This commit enhances the health check capabilities, providing better monitoring and management of service health.
12 lines
395 B
TypeScript
12 lines
395 B
TypeScript
import type { HealthCheckTarget } from "@cfdm/shared";
|
|
import { probeTarget, type ProbeResult } from "../health-check-service.js";
|
|
import type { HealthCheckProvider } from "./provider.js";
|
|
|
|
export class LocalHealthCheckProvider implements HealthCheckProvider {
|
|
readonly kind = "local" as const;
|
|
|
|
probe(target: HealthCheckTarget): Promise<ProbeResult> {
|
|
return probeTarget(target);
|
|
}
|
|
}
|