feat(resilience): @retry jitter + CB failure-rate window & half-open tuning (v26.06.43)#70
Merged
Merged
Conversation
… & half-open tuning + bump v26.06.43 Completes v26.06.36 toward Resilience4j parity: - @Retry(jitter): randomization fraction +/- jitter*wait on each backoff (anti thundering-herd). - CircuitBreaker(failure_rate_threshold, window_size): open on failure RATE over the last N calls (COUNT_BASED window) vs consecutive failures. - CircuitBreaker(half_open_max_calls): N trial calls in HALF_OPEN; that many successes close, any failure re-opens. Back-compat: consecutive-failure behavior unchanged when new options unset. Tests: tests/resilience/test_resilience_tuning.py (4). Gates: mypy --strict (619), ruff + format, full suite 3829 passed.
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.
Completes the v26.06.36 resilience decorators toward Resilience4j parity:
@retry(jitter)(randomization fraction ±jitter·wait, anti thundering-herd);CircuitBreaker(failure_rate_threshold, window_size)(open on failure rate over the last N calls — COUNT_BASED window);CircuitBreaker(half_open_max_calls)(N trial successes to close, any failure re-opens). Back-compat: consecutive-failure behavior unchanged when new options unset. Tests (4) + 6 existing green. Gates: mypy --strict (619), ruff+format, full suite 3829.