retriable icon indicating copy to clipboard operation
retriable copied to clipboard

Retriable is an simple DSL to retry failed code blocks with randomized exponential backoff.

Results 11 retriable issues
Sort by recently updated
recently updated
newest added

Add `:ignore` option to retriable so that we can not retry exceptions that do not need one.

So I'm dumb and am only now realizing a PR (#20) already exists for this, but as it's 4+ years old and is based on an older version of the...

This is very useful when you want to retry a lot of types of exceptions, except for, let's say, one. And to not list all of them, you can just...

This is primarily for testing convenience, but can be very useful in development, for example, when you want to quickly disable/reenable retrying.

https://github.com/kamui/retriable/issues/18

I believe it is best practices to do so in ruby (as it helps ensure consistent testing/debugging) but it's especially relevant here, as nothing in the `Gemfile` is version locked....

The readme mentions being able to turn of retries in tests by doing the following: ```rb Retriable.configure do |c| if Rails.env.test? c.tries = 1 end ``` But from what I...

Currently there's the following code in the gemspec: https://github.com/kamui/retriable/blob/e3f9bf47612fe0a85ce59af58fc6a7b7c4cea411/retriable.gemspec#L26-L31 This doesn't work because gemspecs evaluate tot static content. This means it's evaluated only when gem build is called. That Ruby...

Currently if retriable anticipates that the `max_elapsed_time` will be reached, it just raises the error right then. This is fine however as a user, I'd like to know if this...

Currently the `on_retry` parameter is called each time the passed in block of code raises a matching exception. I am proposing that there be a `on_final_failure` (or similarly named) parameter...