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
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
+ 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
+
1137
1146
.. _messenger-failure-transport :
1138
1147
1139
1148
Saving & Retrying Failed Messages
You can’t perform that action at this time.
0 commit comments