WIP: Schedulded executions

This commit is contained in:
Matej Bačo
2024-06-07 19:05:29 +00:00
parent 3e47b43908
commit b8b81a9bd1
3 changed files with 46 additions and 21 deletions
@@ -41,7 +41,7 @@ class ScheduleFunctions extends ScheduleBase
$delayedExecutions = []; // Group executions with same delay to share one coroutine
foreach ($this->schedules as $key => $schedule) {
$cron = new CronExpression($schedule['schedule']);
$cron = new CronExpression($schedule['schedule']); // TODO: Allow schedule to be DateTime, like ScheduleMessaging.php
$nextDate = $cron->getNextRunDate();
$next = DateTime::format($nextDate);