Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit352ab1f
committed
minor#21212 [Scheduler] Add warning about comma-separated weekdays in
This PR was merged into the 6.4 branch.Discussion----------[Scheduler] Add warning about comma-separated weekdays in `PeriodicalTrigger`### Issuesymfony/symfony#60745Users attempt to use comma-separated weekdays like "Monday, Thursday, Saturday" with RecurringMessage::every(), which causes silent failures due to PHP's DateInterval::createFromDateString()### SolutionAdded a caution note in the PeriodicalTrigger section warning users about this limitation and providing the correct alternative using cron expressions.### Changes- Added .. caution:: block in the Periodical Triggers section- Shows the problematic usage pattern to avoid- Provides working cron expression alternative: RecurringMessage::cron('5 12 * * 1,4,6', $message)- Includes timezone handling example: RecurringMessage::cron('5 12 * * 1,4,6', $message, 'Europe/Warsaw')Commits-------6a007d4 bug #60745 [Scheduler] Add warning about comma-separated weekdays in PeriodicalTriggerPeriodicalTrigger
(wazum)1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
289 | 299 |
| |
290 | 300 |
| |
291 | 301 |
| |
|
0 commit comments
Comments
(0)