Skip to content

Add .retriable feature to Http - Rebased#775

Merged
tarcieri merged 11 commits intohttprb:mainfrom
tomprats:retry
Jul 22, 2024
Merged

Add .retriable feature to Http - Rebased#775
tarcieri merged 11 commits intohttprb:mainfrom
tomprats:retry

Conversation

@tomprats
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

ixti commented Jan 15, 2024

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

@tomprats
Copy link
Copy Markdown
Contributor Author

tomprats commented Feb 5, 2024

@ixti Any luck?

@tomprats
Copy link
Copy Markdown
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
@tarcieri
Copy link
Copy Markdown
Member

Thanks!

@mylesboone
Copy link
Copy Markdown

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

@ixti
Copy link
Copy Markdown
Member

ixti commented Dec 4, 2024

@mylesboone Will cut the release this week.

@mylesboone
Copy link
Copy Markdown

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

@cspeer
Copy link
Copy Markdown

cspeer commented Jun 2, 2025

I'd also like to see this released as a new gem version. Thanks @ixti

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.

6 participants