Skip to content

[Messenger] Mention ScheduledStamp #19666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ Here are some important envelope stamps that are shipped with the Symfony Messen
to configure the validation groups used when the validation middleware is enabled.
* :class:`Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp`,
an internal stamp when a message fails due to an exception in the handler.
* :class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp`,
a stamp that marks the message as produced by a scheduler. You can learn
more about it in the :doc:`Scheduler component page </scheduler>`. This helps
differentiate from messages created "manually".

.. versionadded:: 6.4

The :class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp` was
introduced in Symfony 6.4.

.. note::

Expand Down
9 changes: 9 additions & 0 deletions scheduler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,15 @@ before being further redispatched to its corresponding handler::
}
}

When using the ``RedispatchMessage``, a
:class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp` will be attached
to the message, helping you identify those messages when needed.

.. versionadded:: 6.4

Automatically attaching a :class:`Symfony\\Component\\Messenger\\Stamp\\ScheduledStamp`
to redispatched messages was introduced in Symfony 6.4.

.. _`Memoizing`: https://en.wikipedia.org/wiki/Memoization
.. _`cron command-line utility`: https://en.wikipedia.org/wiki/Cron
.. _`crontab.guru website`: https://crontab.guru/
Expand Down