Skip to content

Add .retriable feature to Http - Rebased#775

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

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

Conversation

@tomprats

@tomprats tomprats commented Jan 5, 2024

Copy link
Copy Markdown
Contributor

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

tomprats commented Jan 5, 2024

Copy link
Copy Markdown
Contributor Author

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

ixti commented Jan 15, 2024

Copy link
Copy Markdown
Member

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

@tomprats

tomprats commented Feb 5, 2024

Copy link
Copy Markdown
Contributor Author

@ixti Any luck?

@tomprats

tomprats commented Jun 7, 2024

Copy link
Copy Markdown
Contributor Author

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

ixti commented Dec 4, 2024

Copy link
Copy Markdown
Member

@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

cspeer commented Jun 2, 2025

Copy link
Copy Markdown

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