Add check for enabled tasks in scheduled tasks loop

This commit is contained in:
Andras Bacsai 2024-04-09 13:03:06 +02:00
parent b21cb5c0e9
commit bd25860ccf

View File

@ -121,6 +121,9 @@ private function check_scheduled_tasks($schedule)
return; return;
} }
foreach ($scheduled_tasks as $scheduled_task) { foreach ($scheduled_tasks as $scheduled_task) {
if ($scheduled_task->enabled === false) {
continue;
}
$service = $scheduled_task->service; $service = $scheduled_task->service;
$application = $scheduled_task->application; $application = $scheduled_task->application;