Repository navigation
fix: cache schedule validation, serve the last snapshot after a failed refresh, no error leaks (#193) - #197
Merged
Merged
Conversation
… failed refresh, stop leaking errors (#193) - parseInterval: 64-bit, positive, bounded; validated at config load and by the cache API - Heartbeat worker contains per-endpoint exceptions and backs off after a failed refresh - A failed refresh of a built cache stays Ready (stale); /health degraded 200 with a stale list - No raw DuckDB error in the 503 body or /health (server log only) - Real-binary tests incl. process-abort, stale serving, leak and retry-storm cases - Refs #193 (rate-limit items remain)
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.
From the crew review; reproduced against a real binary first.
Summary
cache.schedule: 5xaborted the whole process (the heartbeat worker threw outside its try). Schedules are validated at load and in the cache API; 64-bit, positive, <= 10y; scheduler exceptions are contained per endpoint; a failing refresh backs off one interval (it retried every scan)./healthsays degraded (200) with astalelist. A never-built cache is still 503./health; now log-only.Test plan
Refs #193 - the rate-limit items (user key before auth, method-blind lookup, per-path bucket) are not in this PR.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.