-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] Add max_retries
option to RetryableHttpClient
#50240
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 cli 8000 cking “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
[HttpClient] Add max_retries
option to RetryableHttpClient
#50240
Conversation
What about adding |
Yes, this would be much more flexible approach and I like it! To be extra clear, would this option overide the |
Yes, it would override it indeed. |
Can you please update the pr header? You still mention no_retry. Thanks |
What do you mean by PR header? Do you mean my original PR description? Sorry, I never heard that term before. |
Yes the PR description and the code example. Thanks |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me thanks. I just have a minor comment.
max_retries
option to RetryableHttpClient
Thank you @danielburger1337. |
…tryableHttpClient` (danielburger1337) This PR was submitted for the 6.3 branch but it was merged into the 6.4 branch instead. Discussion ---------- [HttpClient] Add `max_retries` setting docs on the `RetryableHttpClient` References [#50240](symfony/symfony#50240) Commits ------- bf57a3e Add 'max_retries' setting docs on the RetryableHttpClient
Added a
max_retries
option to RetryableHttpClient that allows the user to configure the RetryableHttpClient on a per request level, which is especially useful whenretry_failed
was configured for the globalhttp_client
service.