Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Proposal: more flexible API by allowing configuration on indivudual errors #99

@ianks

Description

@ianks

The current configuration API is nice, but it has one major shortcoming: specific errors can't specify different retry behavior. This is often desirable since certain errors have different requirements. Here is some pseudo-code to show what I mean:

example.run_with_retry retrriables:[
  { exception: Capybara::ElementNotFound, retry_wait: 0, retry: 3 },
  { exception: RateLimitError, retry_wait: 30, retry: 1 }
]

This type of configuration would make dealing with errors much more robust IMO. Anywho, love the gem and just figured I would give some feedback 😄

Cheers,
Ian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions