googleapis / gax-ruby

Google API Extensions for Ruby
https://rubygems.org/gems/google-gax
BSD 3-Clause "New" or "Revised" License
20 stars 22 forks source link

More visibility/control in error retry #165

Closed blowmage closed 5 years ago

blowmage commented 5 years ago

See the discussion in #150 for an example of the desired visibility/control.

blowmage commented 5 years ago

As discussed in #172, we are considering delegating the retry and backoff calculations to a Retry object, and allowing users to provide their own object to have more control on errors and retry behavior. We would need to design a simple interface that was easily reproduced for users to create, if they chose not to simply configure the default Retry object.

blowmage commented 5 years ago

@jbolinger Do you think this issue is satisfied by #172?