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

Implement exponential backoff in utils/upload_file function #89

Open
karolisr opened this issue Feb 1, 2020 · 0 comments
Open

Implement exponential backoff in utils/upload_file function #89

karolisr opened this issue Feb 1, 2020 · 0 comments

Comments

@karolisr
Copy link

karolisr commented Feb 1, 2020

I ran into a problem while uploading a large number of files to my university's managed Google Drive: HttpError 403 "User rate limit exceeded." Google suggests an exponential backoff strategy to resolve this: https://developers.google.com/drive/api/v3/handle-errors#resolve_a_403_error_user_rate_limit_exceeded. I have implemented a rudimentary solution in my fork of the repo: https://github.com/karolisr/drive-cli/blob/550bf14c53ebfbcb0007ef2ca2b2ff7be46fe5a8/drive_cli/utils.py#L381. If you would like I could clean up other changes and push this code to the dev branch here. Additionally, if there are problems with the code I am proposing, please let me know how you would like me to resolve them.

Thanks

@karolisr karolisr changed the title Implement exponential backoff in utils/upload_file function. Implement exponential backoff in utils/upload_file function Feb 1, 2020
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

No branches or pull requests

1 participant