Skip to content

fix: hide superseded failure in show api status#92

Merged
ravinald merged 1 commit into
mainfrom
fix/hide-superseded-failure-in-status
Jun 16, 2026
Merged

fix: hide superseded failure in show api status#92
ravinald merged 1 commit into
mainfrom
fix/hide-superseded-failure-in-status

Conversation

@ravinald

Copy link
Copy Markdown
Owner

Summary

show api status printed Last Failure whenever it was non-zero, so an API that recovered still showed a stale failure older than its last success — the case in the prior write-time fix that on-disk caches predate. Gate the line on failure.After(success), the same check the health status already uses. Verified: go vet and go test ./cmd/ pass.

The status display printed Last Failure whenever it was non-zero, even when
a newer success had already cleared the failure on disk. Gate the line on
the same "currently failing" check (failure newer than success) the health
status already uses, so recovered APIs stop showing stale failures.
@ravinald ravinald merged commit ff86453 into main Jun 16, 2026
@ravinald ravinald deleted the fix/hide-superseded-failure-in-status branch June 16, 2026 17:12
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