Skip to content
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

alternative retry strategy for downloading files #1751

Merged
merged 1 commit into from
Jan 29, 2023
Merged

Conversation

uriesk
Copy link
Collaborator

@uriesk uriesk commented Jan 23, 2023

Don't immediately retry failed file requests again.
Instead use the already existing filesToRetryXPath store multiple times to retry after the rest is done.

fixes #1750

@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Base: 69.11% // Head: 69.03% // Decreases project coverage by -0.08% ⚠️

Coverage data is based on head (13b6134) compared to base (e66c8e8).
Patch coverage: 63.63% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1751      +/-   ##
==========================================
- Coverage   69.11%   69.03%   -0.08%     
==========================================
  Files          23       23              
  Lines        2477     2487      +10     
  Branches      588      591       +3     
==========================================
+ Hits         1712     1717       +5     
- Misses        651      656       +5     
  Partials      114      114              
Impacted Files Coverage Δ
src/util/saveArticles.ts 81.69% <50.00%> (-0.58%) ⬇️
src/Downloader.ts 59.62% <73.33%> (+0.45%) ⬆️
src/mwoffliner.lib.ts 71.97% <100.00%> (-0.29%) ⬇️
src/util/const.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@uriesk uriesk requested a review from kelson42 January 23, 2023 18:21
@uriesk
Copy link
Collaborator Author

uriesk commented Jan 23, 2023

looks good

@kelson42
Copy link
Collaborator

@uriesk Thx, will have a look this WE and merge if OK in priority

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@pavel-karatsiuba pavel-karatsiuba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow-down on 429 maybe not optimal
3 participants