Skip to content

Commit ef2a803

Browse files
committed
[Messenger] document SerializedMessageStamp
1 parent 2b03cdc commit ef2a803

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
@@ -839,6 +839,15 @@ this is configurable for each transport:
839839
Symfony triggers a :class:`Symfony\\Component\\Messenger\\Event\\WorkerMessageRetriedEvent`
840840
when a message is retried so you can run your own logic.
841841

842+
.. note::
843+
844+
Thanks to :class:`Symfony\\Component\\Messenger\\Stamp\\SerializedMessageStamp` the serialized form of the message
845+
is saved, which prevents to serialize it again if the message is retried.
846+
847+
.. versionadded:: 6.1
848+
849+
The ``SerializedMessageStamp`` class was introduced in Symfony 6.1.
850+
842851
Avoiding Retrying
843852
~~~~~~~~~~~~~~~~~
844853

0 commit comments

Comments
 (0)