Skip to content

Commit 8f57699

Browse files
committed
minor #20429 [Messenger] Document getRetryDelay() (MrYamous)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [Messenger] Document `getRetryDelay()` Documentation for code [57915](symfony/symfony#57915) Commits ------- 646e199 [Messenger] Document `getRetryDelay()`
2 parents 7f9dd46 + 646e199 commit 8f57699

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

messenger.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,13 @@ 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`.
1139+
1140+
.. versionadded:: 7.2
1141+
1142+
The method ``getRetryDelay()`` was introduced in Symfony 7.2.
1143+
11371144
.. _messenger-failure-transport:
11381145

11391146
Saving & Retrying Failed Messages

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy