feat(actuator): expose live HealthAggregator on app.state (v26.06.108)#140
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expose the live actuator
HealthAggregatoronapp.state.pyfly_health_aggregatorso consumers can register extra health indicators aftercreate_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/healthin 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
app.state.pyfly_health_aggregatorflips/actuator/health/readinessto 503 while liveness stays UP — proving it's the live aggregator.Bump v26.06.107 → v26.06.108.
🤖 Generated with Claude Code