Skip to content

Commit 63a198a

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: bug #60745 [Scheduler] Add warning about comma-separated weekdays in PeriodicalTrigger
2 parents 16c7ba0 + 352ab1f commit 63a198a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scheduler.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,16 @@ defined by PHP datetime functions::
276276
RecurringMessage::every('3 weeks', new Message());
277277
RecurringMessage::every('first Monday of next month', new Message());
278278

279+
.. note::
280+
281+
Comma-separated weekdays (e.g., ``'Monday, Thursday, Saturday'``) are not supported
282+
by the ``every()`` method. For multiple weekdays, use cron expressions instead:
283+
284+
.. code-block:: diff
285+
286+
- RecurringMessage::every('Monday, Thursday, Saturday', new Message());
287+
+ RecurringMessage::cron('5 12 * * 1,4,6', new Message());
288+
279289
.. tip::
280290

281291
You can also define periodic tasks using :ref:`the AsPeriodicTask attribute <scheduler-attributes-periodic-task>`.

0 commit comments

Comments
 (0)