Skip to content

Commit f99ae71

Browse files
committed
Reword
1 parent 8f57699 commit f99ae71

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

messenger.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,12 +1134,14 @@ and must be retried. If you throw
11341134
:class:`Symfony\\Component\\Messenger\\Exception\\RecoverableMessageHandlingException`,
11351135
the message will always be retried infinitely and ``max_retries`` setting will be ignored.
11361136

1137-
If you want to override retry delay form the retry strategy. You can achieve this
1138-
using by providing it in the exception, using the ``getRetryDelay()`` method from :class:`Symfony\\Component\\Messenger\\Exception\\RecoverableExceptionInterface`.
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``.
11391140

11401141
.. versionadded:: 7.2
11411142

1142-
The method ``getRetryDelay()`` was introduced in Symfony 7.2.
1143+
The ``retryDelay`` argument and the ``getRetryDelay()`` method were introduced
1144+
in Symfony 7.2.
11431145

11441146
.. _messenger-failure-transport:
11451147

0 commit comments

Comments
 (0)