Add check for enabled tasks in scheduled tasks loop

This commit is contained in:
Andras Bacsai committed 2024-04-09 13:03:06 +02:00
1 parent b21cb5c0e9
commit bd25860ccf
1 file changed
+3
+3
View File
@@ -121,6 +121,9 @@ class Kernel extends ConsoleKernel
return;
}
foreach ($scheduled_tasks as $scheduled_task) {
if ($scheduled_task->enabled === false) {
continue;
}
$service = $scheduled_task->service;
$application = $scheduled_task->application;