File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1134,6 +1134,15 @@ and must be retried. If you throw
11341134:class: `Symfony\\ Component\\ Messenger\\ Exception\\ RecoverableMessageHandlingException `,
11351135the message will always be retried infinitely and ``max_retries `` setting will be ignored.
11361136
1137+ You can define a custom retry delay (e.g., to use the value from the ``Retry-After ``
1138+ header in an HTTP response) by setting the ``retryDelay `` argument in the
1139+ constructor of the ``RecoverableMessageHandlingException ``.
1140+
1141+ .. versionadded :: 7.2
1142+
1143+ The ``retryDelay `` argument and the ``getRetryDelay() `` method were introduced
1144+ in Symfony 7.2.
1145+
11371146.. _messenger-failure-transport :
11381147
11391148Saving & Retrying Failed Messages
You can’t perform that action at this time.
0 commit comments