File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ Finally, the recurring messages has to be attached to a schedule::
318
318
public function getSchedule(): Schedule
319
319
{
320
320
return $this->schedule ??= (new Schedule())
321
- ->with (
321
+ ->add (
322
322
RecurringMessage::trigger(
323
323
new ExcludeHolidaysTrigger(
324
324
CronExpressionTrigger::fromSpec('@daily'),
@@ -404,7 +404,7 @@ a worker is restarted, it resumes from the point it left off::
404
404
$this->removeOldReports = RecurringMessage::cron('3 8 * * 1', new CleanUpOldSalesReport());
405
405
406
406
return $this->schedule ??= (new Schedule())
407
- ->with (
407
+ ->add (
408
408
// ...
409
409
)
410
410
->stateful($this->cache)
@@ -426,7 +426,7 @@ same task more than once::
426
426
$this->removeOldReports = RecurringMessage::cron('3 8 * * 1', new CleanUpOldSalesReport());
427
427
428
428
return $this->schedule ??= (new Schedule())
429
- ->with (
429
+ ->add (
430
430
// ...
431
431
)
432
432
->lock($this->lockFactory->createLock('my-lock')
@@ -453,7 +453,7 @@ before being further redispatched to its corresponding handler::
453
453
public function getSchedule(): Schedule
454
454
{
455
455
return $this->schedule ??= (new Schedule())
456
- ->with (
456
+ ->add (
457
457
RecurringMessage::every('5 seconds'),
458
458
new RedispatchMessage(new Message(), 'async')
459
459
);
You can’t perform that action at this time.
0 commit comments