Closed pawelsz-rb closed 1 year ago
Can we add some tests for a situation where we end up with retries?
imo, I don't think it's needed, because this is internal feature of resty-go and it's fully tested here: https://github.com/go-resty/resty/blob/master/resty_test.go#L71 and here https://github.com/go-resty/resty/blob/master/retry_test.go#L209
:tada: This PR is included in version 1.8.0 :tada:
The release is available on:
v1.8.0
Your semantic-release bot :package::rocket:
Description of the change
Added 5 tries with incremental delay.
resty-go is using backoff method to increase retry intervals after each attempt. I think it's good enough for us, and it saves the development time.
Here are my 3 delay benchmarks using 8 seconds as the start, and 50 seconds as the max:
I think it's good enough and really close to what we agreed
in addition, I have set additional timeout for http client (30 seconds).
That way it will give us plenty of time to recover. Also I don't want to recover errors yet (returning success in case of failure). Let'e see first if this change will help.
Type of change
Related issues
Checklists
Development
Code review