implement exponential backoff in download_file + allow max. 6 attempts to download PR diff in fetch_files_from_pr and fetch_files_from_commit#4870
Merged
lexming merged 7 commits intoeasybuilders:developfrom May 14, 2025
Conversation
…cify maximum number of download attempts
download_file + allow max. 8 attempts to download PR diff in fetch_files_from_pr
Micket
reviewed
May 7, 2025
…(~10min) in fetch_files_from_pr + fetch_files_from_commit
Member
Author
|
I tested this with an "extreme" case, and it seems to hold up well: The printed messages I added for debugging purposes, but it's probably wise to actually have those, so I'll update the PR accordingly. The first wait time is also not the intended 10 seconds, it straight goes to 2*10, need to fix that too. |
|
Just to add: I tried |
Contributor
|
works well for me too |
lexming
reviewed
May 13, 2025
download_file + allow max. 8 attempts to download PR diff in fetch_files_from_prdownload_file + allow max. 6 attempts to download PR diff in fetch_files_from_pr
download_file + allow max. 6 attempts to download PR diff in fetch_files_from_prdownload_file + allow max. 6 attempts to download PR diff in fetch_files_from_pr and fetch_files_from_commit
This was referenced May 15, 2025
Merged
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.
workaround/fix for #4869