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.
975975jitter
976976......
977977
978- **type **: ``float `` **default **: ``0.1 ``
978+ **type **: ``float `` **default **: ``0.1 `` (must be between 0.0 and 1.0)
979979
980980.. versionadded :: 5.2
981981
982982 The ``jitter `` option was introduced in Symfony 5.2.
983983
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%).
986988
987989local_cert
988990..........
You can’t perform that action at this time.
0 commit comments