diff --git a/plugin/Scheduler/run.php b/plugin/Scheduler/run.php index 62b6c37359..28d2dede24 100644 --- a/plugin/Scheduler/run.php +++ b/plugin/Scheduler/run.php @@ -16,6 +16,11 @@ $total1 = count($rowActive); $rows = Scheduler_commands::getAllActiveAndReady(); $total2 = count($rows); + +$rows2 = Scheduler_commands::getAllScheduledTORepeat(); +$total3 = count($rows2); +_log("There are {$total1} active requests; getAllActiveAndReady={$total2} getAllScheduledTORepeat={$total3} on time ". json_encode(Scheduler_commands::getTimesNow())); + foreach ($rows as $value) { _log("getAllActiveAndReady run ". json_encode($value)); $id = Scheduler::run($value['id']); @@ -24,11 +29,7 @@ foreach ($rows as $value) { } } - -$rows = Scheduler_commands::getAllScheduledTORepeat(); -$total3 = count($rows); -_log("There are {$total1} active requests; getAllActiveAndReady={$total2} getAllScheduledTORepeat={$total3} on time ". json_encode(Scheduler_commands::getTimesNow())); -foreach ($rows as $value) { +foreach ($rows2 as $value) { _log("getAllScheduledTORepeat run ". json_encode($value)); $id = Scheduler::run($value['id']); if(empty($id)){