File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -975,14 +975,16 @@ to let Symfony select the best version automatically.
975
975
jitter
976
976
......
977
977
978
- **type **: ``float `` **default **: ``0.1 ``
978
+ **type **: ``float `` **default **: ``0.1 `` (must be between 0.0 and 1.0)
979
979
980
980
.. versionadded :: 5.2
981
981
982
982
The ``jitter `` option was introduced in Symfony 5.2.
983
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.
984
+ This option adds some randomness to the delay. It's useful to avoid sending
985
+ multiple requests to the server at the exact same time. The randomness is
986
+ calculated as ``delay * jitter ``. For example: if delay is ``1000ms `` and jitter
987
+ is ``0.2 ``, the actual delay will be a number between ``800 `` and ``1200 `` (1000 +/- 20%).
986
988
987
989
local_cert
988
990
..........
You can’t perform that action at this time.
0 commit comments