Skip to content

Commit e6e65c6

Browse files
committed
minor #19895 [Scheduler] Update scheduler: Fixes the code in the Custom Triggers example (kells64000)
This PR was merged into the 6.4 branch. Discussion ---------- [Scheduler] Update scheduler: Fixes the code in the Custom Triggers example The while was missing a parenthesis and the negation of the condition needs to be removed for it to work as expected. Commits ------- ca65006 Update scheduler.rst
2 parents 312603c + ca65006 commit e6e65c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scheduler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ For example, if you want to send customer reports daily except for holiday perio
320320
}
321321

322322
// loop until you get the next run date that is not a holiday
323-
while (!$this->isHoliday($nextRun) {
323+
while ($this->isHoliday($nextRun)) {
324324
$nextRun = $this->inner->getNextRunDate($nextRun);
325325
}
326326

0 commit comments

Comments
 (0)