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

Merged
merged 11 commits into from
Jul 22, 2024
Merged

Conversation

tomprats
Copy link
Contributor

@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
Contributor 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
Contributor Author

tomprats commented Feb 5, 2024

@ixti Any luck?

@tomprats
Copy link
Contributor Author

tomprats commented Jun 7, 2024

I've been using this in prod for a few months now and so far haven't noticed any issues :)

@tarcieri tarcieri requested a review from ixti July 8, 2024 14:55
@tarcieri tarcieri merged commit d6313d7 into httprb:main Jul 22, 2024
6 checks passed
@tarcieri
Copy link
Member

Thanks!

@mylesboone
Copy link

@tarcieri any chance we could get a gem version published? we'd greatly benefit having retries built in.

@ixti
Copy link
Member

ixti commented Dec 4, 2024

@mylesboone Will cut the release this week.

@mylesboone
Copy link

@ixti any chance we could get the release this week? it would be a massive help!

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.

5 participants