Skip to content

Commit

Permalink
Add check for enabled tasks in scheduled tasks loop
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Apr 9, 2024
1 parent b21cb5c commit bd25860
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bd25860

Please sign in to comment.