Skip to content

Commit 6b0e324

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [Messenger] Document `getRetryDelay()`
2 parents 037fcb5 + f99ae71 commit 6b0e324

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

messenger.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,15 @@ 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+
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

11391148
Saving & Retrying Failed Messages

0 commit comments

Comments
 (0)