Repository navigation
Add transient retries, backoff, and Async concurrency limits - #24
Merged
Merged
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #24 +/- ##
===========================================
- Coverage 100.00% 99.66% -0.34%
===========================================
Files 24 25 +1
Lines 502 603 +101
===========================================
+ Hits 502 601 +99
- Misses 0 2 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dblock
force-pushed
the
feature/transient-retries-and-concurrency
branch
from
November 7, 2026 12:58
2eebd36 to
cc60fda
Compare
Contributor
Danger ReportNo issues found. |
dblock
force-pushed
the
feature/transient-retries-and-concurrency
branch
from
November 7, 2026 20:04
cc60fda to
9573d7c
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
feature/transient-retries-and-concurrency
branch
from
November 7, 2026 20:40
9573d7c to
286f02d
Compare
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.
Changes
Retries remain disabled by default. When enabled, the default policy now retries transient connection/time-out errors and HTTP 408/425/429/500/502/503/504 only, as requested.
retry_status_codes: nilrestores the legacy all-failure/error policy, and custom arrays select HTTP statuses. The retry budget remains shared across methods; ordinary HEAD-to-GET fallback is unchanged.Add validated optional
retry_after, exponentialretry_backoff, bounded additiveretry_jitter,respect_retry_after(delta-seconds and HTTP dates), andmax_retry_delay. Async delays yield outside its optional concurrency semaphore. Hydra defers delayed retries until the active batch drains rather than sleeping in completion callbacks; these delays are minimum waits, not exact scheduling deadlines.Expose response headers and common
error_typecategories while retaining native exceptions. Classify curl connection failures separately from HTTP failures, normalize Typhoeus method options, document Async connection reuse, and addmax_concurrency(default unlimited).Validation
bundle exec rubocoppassed. Full RSpec suite: 174 examples, zero failures. Tests cover transient/legacy policies, all-backend delays, timeout categorization, server dates/invalid headers, delay caps/jitter, Hydra ordering, and Async concurrency/client reuse.git diff --checkpassed.Independent of #23; the shared replay-fixture fixes are intentionally identical. No host-wide rate-limit coordination is introduced.
Fixes #2. Fixes #3.
Implemented by AI on behalf of @dblock.