Skip to content

Commit c41242f

Browse files
committed
minor #16366 [Messenger] document SerializedMessageStamp (nikophil)
This PR was merged into the 6.1 branch. Discussion ---------- [Messenger] document SerializedMessageStamp fixes #16353 Commits ------- ef2a803 [Messenger] document SerializedMessageStamp
2 parents b3a26c3 + ef2a803 commit c41242f

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

831+
.. note::
832+
833+
Thanks to :class:`Symfony\\Component\\Messenger\\Stamp\\SerializedMessageStamp` the serialized form of the message
834+
is saved, which prevents to serialize it again if the message is retried.
835+
836+
.. versionadded:: 6.1
837+
838+
The ``SerializedMessageStamp`` class was introduced in Symfony 6.1.
839+
831840
Avoiding Retrying
832841
~~~~~~~~~~~~~~~~~
833842

0 commit comments

Comments
 (0)