Skip to content

Enable Google API retries for uploads

Stan Hu requested to merge sh-enable-google-api-retries into master

As stated in https://github.com/googleapis/google-api-ruby-client#errors--retries, enabling retries is strongly encouraged but disabled by default. Large uploads that may hit timeouts will mainly benefit from this.

Note that this retry mechanism only kicks in if the HTTP command encounters a server error, rate limit error, or transmission error (https://github.com/googleapis/google-api-ruby-client/blob/5b2bdc6342889fe55d78e84ad177bd4d1653bbd3/lib/google/apis/core/http_command.rb#L30).

This will help improve the reliability of backups and anything else that goes through google-api-client. fog-google appears to be the main user of this.

Closes #23452 (closed)

Edited by Stan Hu

Merge request reports