Skip to content

feat(actuator): expose live HealthAggregator on app.state (v26.06.108)#140

Merged
ancongui merged 1 commit into
mainfrom
feat/expose-health-aggregator
Jun 16, 2026
Merged

feat(actuator): expose live HealthAggregator on app.state (v26.06.108)#140
ancongui merged 1 commit into
mainfrom
feat/expose-health-aggregator

Conversation

@ancongui

Copy link
Copy Markdown
Contributor

Summary

Expose the live actuator HealthAggregator on app.state.pyfly_health_aggregator so consumers can register extra health indicators after create_app (e.g. a readiness-only probe for an external dependency) without introspecting route closures.

It is the same aggregator the live health routes use — whether actuator runs on the main app (shared management mode) or on the separate management port — so indicators added through it are reflected on /actuator/health in either mode.

Unblocks single-container apps that adopt the two-port management model and need to register their own readiness probe (the cdm-mexico Fabric readiness probe).

Tests

  • Shared mode (end-to-end via TestClient): a readiness-only DOWN indicator added through app.state.pyfly_health_aggregator flips /actuator/health/readiness to 503 while liveness stays UP — proving it's the live aggregator.
  • Separate mode: the attribute is present (same instance the management app serves).

Bump v26.06.107 → v26.06.108.

🤖 Generated with Claude Code

Expose the live actuator HealthAggregator on app.state.pyfly_health_aggregator so
consumers can register extra health indicators after create_app — e.g. a
readiness-only probe for an external dependency — without introspecting route
closures. It is the SAME aggregator the live health routes use whether actuator
runs on the main app (shared management mode) or the separate management port, so
indicators added through it reflect on /actuator/health in either mode.

Unblocks single-container apps that adopt the two-port management model and need
to register their own readiness probe (cdm-mexico Fabric probe).
@ancongui ancongui merged commit c566619 into main Jun 16, 2026
6 checks passed
@ancongui ancongui deleted the feat/expose-health-aggregator branch June 16, 2026 19:42
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.

1 participant