File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ Configuration
148
148
* `max_delay `_
149
149
* `max_retries `_
150
150
* `multiplier `_
151
+ * `jitter `_
151
152
152
153
* `timeout `_
153
154
* `max_duration `_
@@ -164,6 +165,7 @@ Configuration
164
165
* `max_delay `_
165
166
* `max_retries `_
166
167
* `multiplier `_
168
+ * `jitter `_
167
169
168
170
* `http_method_override `_
169
171
* `ide `_
@@ -784,7 +786,8 @@ will automaticaly retry failed HTTP requests.
784
786
max_retries : 2
785
787
delay : 1000
786
788
multiplier : 3
787
- max_delay : 500
789
+ max_delay : 5000
790
+ jitter : 0.3
788
791
789
792
scoped_clients :
790
793
my_api.client :
@@ -835,8 +838,8 @@ backoff_service
835
838
The service id used to compute the time to wait between retries. By default, it
836
839
uses an instance of
837
840
:class: `Symfony\\ Component\\ HttpClient\\ Retry\\ ExponentialBackOff ` configured
838
- with ``delay ``, ``max_delay `` and ``multiplier `` options. This class has to
839
- implement :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ RetryBackOffInterface `.
841
+ with ``delay ``, ``max_delay ``, `` multiplier `` and ``jitter `` options. This
842
+ class has to implement :class: `Symfony\\ Component\\ HttpClient\\ Retry\\ RetryBackOffInterface `.
840
843
841
844
base_uri
842
845
........
@@ -969,6 +972,18 @@ http_version
969
972
The HTTP version to use, typically ``'1.1' `` or ``'2.0' ``. Leave it to ``null ``
970
973
to let Symfony select the best version automatically.
971
974
975
+ jitter
976
+ ......
977
+
978
+ **type **: ``float `` **default **: ``0.1 ``
979
+
980
+ .. versionadded :: 5.2
981
+
982
+ The ``jitter `` option was introduced in Symfony 5.2.
983
+
984
+ The probability (expressed with a float between ``0.0 `` and ``1.0 ``) of
985
+ randomness to apply to the delay to wait between retries.
986
+
972
987
local_cert
973
988
..........
974
989
You can’t perform that action at this time.
0 commit comments