feat: add health status route in backend for users#90
Merged
Conversation
marius-mather
left a comment
Collaborator
There was a problem hiding this comment.
looks good but I'm not sure if we want to allow the force-refresh on the user-facing API, seems safer to keep that admin only unless there's a definite need for it
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.
Pull Request
Summary
SBP-406: Surfaces a coarse health signal to SBP-bundle users on the job details page, so they know when job status/logs may be stale or submissions slow.
Changes
GET /api/health/components, gated to SBP-bundle approved users (same gate as workflow submission)overallStatus+ generic message — does not identify which component is affected message is null when healthy, otherwise a generic "services unavailable, data may be stale" noticeseqera_api,seqera_compute_env,seqera_tower_agent);overallStatus= worst of the three/admin/api/system-status); the user-facing endpoint always serves from cacheComponentsHealthResponseschema +to_components_health_dict()projectionStatus meanings
healthy— all components reachable & operational (Seqera API 2xx, compute env AVAILABLE); no message showndegraded— slow/provisioning but not failed (e.g. compute env CREATING, or unknown state); warning shownunhealthy— a component is down/failing (Seqera API non-2xx/timeout/bad token, or compute envERRORED/OFFLINE/INVALID); warning shownHow to Test
All CI tests shall pass!
Type of change
Checklist