Skip to content

Retriable 4.0.0

Choose a tag to compare

@kamui kamui released this 27 May 15:55
· 15 commits to main since this release
Immutable release. Only release title and notes can be modified.

Major release with breaking changes. Please read carefully before upgrading.

Breaking changes

  • Removed timeout: from Retriable.retriable, Retriable.configure, and Retriable.with_override. Prefer library-native timeout settings, or wrap the retried block in Timeout.timeout(...) directly if you still need that behavior.
  • Minimum Ruby version is now 3.2. Ruby 2.x, 3.0, and 3.1 users should stay on the 3.8.x line (~> 3.8).

Features

  • Added on_give_up, a callback that runs when Retriable stops retrying after a rescued retriable exception.
  • Added support for passing a Set of Exception classes as the on: option.

Internal

  • Switched Retriable.retriable, Retriable.with_context, and the Kernel extension methods to Ruby 3.1+ anonymous block forwarding.

See the README migration section for replacement patterns and examples.