Add shared HTTP retry adapter for sub-indexers - #1862
Merged
Conversation
purplesmoke05
approved these changes
Aug 28, 2026
Coverage Report •
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
📌 Description
Improve resilience when fetching public information lists from S3 URLs that temporarily return HTTP 503 responses.
✅ Related Issues
None
🔄 Changes
total=3: retry up to three times after the initial request, for a maximum of four requests in total.backoff_factor=1.0: use exponential backoff between retries, resulting in approximately0,2, and4seconds of delay.backoff_jitter=0.5: add a small random delay to avoid simultaneous retries from multiple processes.respect_retry_after_header=True: honor the wait time specified by the S3 response.raise_on_status=False: return the final HTTP response after retries are exhausted so the indexer can handle it consistently.status_forcelist=(500, 502, 503, 504): retry temporary server-side errors.allowed_methods=("GET",): limit retries to idempotent GET requests.📌 Checklist