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

Possibility to turn off retries #36

Open
zuiderkwast opened this issue Dec 8, 2020 · 0 comments
Open

Possibility to turn off retries #36

zuiderkwast opened this issue Dec 8, 2020 · 0 comments

Comments

@zuiderkwast
Copy link
Collaborator

Turning off retries (not counting redirects) allows a project to have their own failure and retry handling, such as:

  1. Logging errors in custom ways
  2. Having custom back-off timer logic
  3. Tweaking the number of retries depending on the type of the error

Possible ways to turn off retries:

  • Add an optional number-of-retries parameter to each function
  • Add a number-of-retries option as an application configuration parameter ⭐

As indicated, I'm leaning towards the 2nd option, since it doesn't clutter the API as much as the 1st option, but there might be other aspects that I haven't thought of.

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