File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1134,6 +1134,17 @@ and must be retried. If you throw
1134
1134
:class: `Symfony\\ Component\\ Messenger\\ Exception\\ RecoverableMessageHandlingException `,
1135
1135
the message will always be retried infinitely and ``max_retries `` setting will be ignored.
1136
1136
1137
+ Retry with a specific delay
1138
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
1139
+
1140
+ Sometimes you may want to override retry delay form the retry strategy. You can achieve this
1141
+ using by providing it in the exception, using the ``getRetryDelay() `` method from any
1142
+ exception extending :class: `Symfony\\ Component\\ Messenger\\ Exception\\ RecoverableExceptionInterface `.
1143
+
1144
+ .. versionadded :: 7.2
1145
+
1146
+ The method ``getRetryDelay() `` was introduced in Symfony 7.2.
1147
+
1137
1148
.. _messenger-failure-transport :
1138
1149
1139
1150
Saving & Retrying Failed Messages
You can’t perform that action at this time.
0 commit comments