-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add retries when fetching error/overloaded #110
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
Conversation
|
Hi thanks for the feedback! This is the error report before adding retries This error only occurs during fetching the list of guides Sorry about that, I didn't notice it. I was following the design of another function Besides that, I think there might be some issue with but in urllib3 documentation it seems the backoff_factor is in seconds and will cause the program to sleep for It should now fixed 😄 |
This is in fact intentional. When a server sends a 429 error or timeout on connection, retrying only few milliseconds or seconds later proved to not work at all. We need to let the upstream server "breath". A full ifixit scraper run typically takes hours, so if on some occasion we need to wait 30s because the server was overwhelmed, it is fine. I will review your changes |
benoit74
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more changes, thank you
|
Also please fix your first comment so that PR is properly linked to issue: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue |
benoit74
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please:
- squash all your commits into one now that review is over
- fix your first comment so that PR is properly linked to issue: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue
I will merge it right after
|
Thanks for the review! I have changed the PR message, can you please confirm if it is linked properly? |
benoit74
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
resolved issue by adding retries when 429 or 500+ status returned