Repository navigation
Closed
Labels
Description
Goal
Migrate only the health-check API component to the supervised cancellation tree. Bootstrap derives a health-check child CancellationToken from JobManager; the component begins token-aware Axum draining, joins its server and drain-controller children, and reports one named health_check_api outcome.
Current behavior
The current component bridges JobManager cancellation through a private Halted channel. It retains the drain-controller handle but joins it only on token cancellation; independent server completion can return without joining the controller.
Scope
- Add an additive token-aware health-check server start path while preserving legacy APIs.
- Derive and inject one health-check component child token from JobManager.
- Join runtime and drain-controller children for cancellation, independent completion, and failure.
- Add deterministic lifecycle, registration rollback, legacy compatibility, and bootstrap-propagation coverage.
- Record direct tracker-binary SIGTERM and listener-rebind evidence.
Out of scope
- Changing health-check readiness or response behavior during shutdown; SI-21 owns readiness-before-drain behavior.
- Migrating HTTP tracker, REST API, UDP server, or standalone consumers.
- Removing legacy Halted APIs, global shutdown signals, deadline configuration, or exit codes.
Acceptance criteria
- The component receives a JobManager-derived child CancellationToken and starts graceful draining without a library-level OS-signal subscription.
- The component joins its server and drain-controller children before reporting health_check_api completion.
- Legacy health-check start/stop behavior remains compatible.
- Deterministic tests cover token cancellation, normal drain, unexpected completion/failure, and bootstrap propagation.
- Direct-PID SIGTERM evidence demonstrates clean health-check drain and listener rebind.
- Existing health-check request and readiness semantics remain unchanged.
- Linter all passes.
Parent EPIC: #1488
Activity
docs(issues): add issue specification for torrust#2324
Merge #2326: docs(issues): add issue specification for #2324
fix(bootstrap): [torrust#2324] log the bound health-check address on …
test(bootstrap): [torrust#2324] pace the health-check listener releas…
docs(issues): record SI-13 implementation decisions for torrust#2324
feat(axum-health-check-api-server): [torrust#2324] add token-aware st…
feat(bootstrap): [torrust#2324] migrate health-check API to token lif…
fix(bootstrap): [torrust#2324] own health-check children before retur…
docs(issues): [torrust#2324] record SI-13 verification and completion…
docs(issues): [torrust#2324] cite SI-13 commits by subject instead of…
fix(bootstrap): [torrust#2324] log the bound health-check address on …
test(bootstrap): [torrust#2324] pace the health-check listener releas…
Merge torrust#2336: feat(health-check-api): [torrust#2324] migrate to…
chore(issues): archive closed issue specs torrust#2157, torrust#2159, t…
Merge #2340: chore(issues): archive closed issue specs
docs(pr-reviews): point PR #2336 audit to the archived #2324 spec
Merge #2343: docs(issues): add issue specification for #2342
docs(issues): [torrust#2281] record manual verification, acceptance r…
docs(issues): [torrust#2281] record manual verification, acceptance r…
docs(issues): [torrust#2281] record manual verification, acceptance r…