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

code: implement retry mechanism with requests #4

Open
ankan17 opened this issue Apr 3, 2018 · 0 comments
Open

code: implement retry mechanism with requests #4

ankan17 opened this issue Apr 3, 2018 · 0 comments
Labels
difficulty: hard Hard issue, not recommended for beginners enhancement New feature or request

Comments

@ankan17
Copy link
Collaborator

ankan17 commented Apr 3, 2018

Due to unstable network, the API call may not go through while getting the repositories of a user in the get_repositories function defined in utils.py. We need a retry mechanism to try multiple times to get the repositories and handle the error gracefully even if the network is not available and repositories are not saved. A good solution is provided here: https://www.peterbe.com/plog/best-practice-with-retries-with-requests.

@ankan17 ankan17 added difficulty: hard Hard issue, not recommended for beginners enhancement New feature or request labels Apr 3, 2018
@ankan17 ankan17 assigned ankan17 and unassigned ankan17 Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: hard Hard issue, not recommended for beginners enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant