Google-api-ruby-client: Make the retry mechanism more configurable

Created on 15 Jun 2018  路  2Comments  路  Source: googleapis/google-api-ruby-client

Hi,

As you can see here, it is currently possible to configure the number of retries through request options, but not other things such as the retry intervals, which are hard-coded, or other retriable options.

Can something be done about that, or is it a policy to have those magic numbers as intervals?

feature request

Most helpful comment

@kented
where did you configure the max_elapsed_time ?
i壮m having the same problem

All 2 comments

While uploading large files to Youtube I was receiving 'Google::Apis::TransmissionError: execution expired'. After some digging I learned that retriable has a default max_elapsed_time of 15 minutes. I was able to adjust this configuration globally to solve my problem.

Would be great to have some sort of documentation for this underlying mechanism and/or expose some level of configuration directly. The context feature of retriable might be useful for this.

@kented
where did you configure the max_elapsed_time ?
i壮m having the same problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gimite picture gimite  路  3Comments

penakamaayo picture penakamaayo  路  3Comments

asheren picture asheren  路  5Comments

eric-hu picture eric-hu  路  4Comments

brandonhilkert picture brandonhilkert  路  6Comments