Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ianks opened this issue Oct 11, 2018 · 0 comments
Open

Comments

@ianks
Copy link
Contributor

ianks commented Oct 11, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant