From bd25860ccfe0f9c2290a365bd0fe910fbc5da7b4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 9 Apr 2024 13:03:06 +0200 Subject: [PATCH] Add check for enabled tasks in scheduled tasks loop --- app/Console/Kernel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index dbb8e6ead..835c0afe2 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -121,6 +121,9 @@ private function check_scheduled_tasks($schedule) return; } foreach ($scheduled_tasks as $scheduled_task) { + if ($scheduled_task->enabled === false) { + continue; + } $service = $scheduled_task->service; $application = $scheduled_task->application;