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

Add .retriable feature to Http - Rebased #775

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

tomprats
Copy link

@tomprats tomprats commented Jan 5, 2024

Rebase of #598 with:

  • hashrockets removed
  • rubocop formatting updates
  • creating a response with uri option

I don't understand the internals super well, but the changes I made off of the original were minor enough to not really change any actual functionality. Tests and cops all pass!

ixti and others added 11 commits January 5, 2024 12:32
* Delay by default backs backs off over time
* Maximum delay time
* Exceptions to retry from
* Status codes to retry from
* Custom retry logic
* Respect Retry-After header if present
* on_retry callback
* Less procs & proc building overall
* seperate delay calculation into its own class
@tomprats
Copy link
Author

tomprats commented Jan 5, 2024

I had some time, so I ended up rebasing and fixing the lint and test errors.

@ixti would you mind taking a look again?

@ixti
Copy link
Member

ixti commented Jan 15, 2024

That looks amazing! Thank you! Will take me some time reviewing though... :D

@tomprats
Copy link
Author

tomprats commented Feb 5, 2024

@ixti Any luck?

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

Successfully merging this pull request may close these issues.

None yet

3 participants