-
Notifications
You must be signed in to change notification settings - Fork 33
Improve retrying downloads code and testing #1559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4cc65c2
Simplify: a single log.debug invocation for any case which leads to s…
yarikoptic 88f3901
Retry-After is provided by 429 (too many) so retry on that too
yarikoptic 6bb3146
Handle Retry-After as a date, and add tests for all logic of checking…
yarikoptic 8b3f546
Replace UTC with use of timezone.utc for compatibility
yarikoptic 47cc585
RF: centralize retry-after parsing logic, add to other places where R…
yarikoptic d2d046e
Merge remote-tracking branch 'origin/master' into gh-1556
yarikoptic 7d2a858
ENH: remove stale comment (we retry only on selected), fix typo, info…
yarikoptic 948b7f7
RF: rename function to reflect that it would sleep as well
yarikoptic 6c9fa51
Replace "elif" with "if" for clarity
yarikoptic b4b2ea1
Make code cleaner and more Pythonic (use `None`, not "-1")
yarikoptic 3883afc
Another pythonic tuneup
yarikoptic 48eaa2b
Use try/except instead of isdecimal test
yarikoptic 6aeaa61
RF+BF: dedent checking of sleep_amount, do not use if_unparsable
yarikoptic fa60dfd
Fix type info -- only Path is allowed
yarikoptic 0fe489a
RF: use "if" not "elif" after a statement with return in the body
yarikoptic b2736e4
Add tests for odd times encountered
yarikoptic 2b43e05
Apply suggestions from code review: improved docstring, use of %s for…
yarikoptic 9cd62a2
RF: Do not bother logging yet another debug msg on Retry-After in dow…
yarikoptic 7d236cf
Dedent log msg to always inform on how long we would sleep for one re…
yarikoptic 2482103
Merge branch 'master' into gh-1556
yarikoptic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.