Skip to content

[Scheduler] Document unique schedule name #21120

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

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion scheduler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,14 @@ on a particular schedule::

.. tip::

By default, the schedule name is ``default`` and the transport name follows
The schedule name must be unique and by default, it is ``default``. The transport name follows
the syntax: ``scheduler_nameofyourschedule`` (e.g. ``scheduler_default``).

.. versionadded:: 7.4

Throwing an exception for duplicate schedule names instead of replacing the existing schedule
was introduced with Symfony 7.4.

.. tip::

`Memoizing`_ your schedule is a good practice to prevent unnecessary reconstruction
Expand Down