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

Add exponential backoff to Google Drive list files call #101

Merged
merged 4 commits into from
Mar 23, 2023

Conversation

jfreda
Copy link
Contributor

@jfreda jfreda commented Mar 22, 2023

This PR adds exponential backoff to the Google Drive list files call, which seems to return an internal error relatively frequently. It also creates a default backoff configuration with a shorter max elapsed time of 2 minutes (the default is 15 minutes) and logs warnings when backoff errors are returned but we're still retrying.

And unrelatedly, it fixes a log line with the wrong folder ID.

@jfreda jfreda requested a review from a team as a code owner March 22, 2023 22:08
@jfreda jfreda merged commit a6b76e1 into main Mar 23, 2023
@jfreda jfreda deleted the jfreda/add-backoff-for-list-files branch March 23, 2023 19:48
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
…rge#101)

* Add default exponential backoff configuration and notify function

* Retry with a default backoff config and notify function

* Add exponential backoff to Google Drive list files call

* Fix documents folder ID in log
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.

None yet

2 participants