only get enabled scheduled tasks
This commit is contained in:
parent
bd64505451
commit
4b3bf832f5
1 changed files with 1 additions and 4 deletions
|
|
@ -179,14 +179,11 @@ private function checkScheduledBackups($schedule): void
|
|||
|
||||
private function checkScheduledTasks($schedule): void
|
||||
{
|
||||
$scheduled_tasks = ScheduledTask::all();
|
||||
$scheduled_tasks = ScheduledTask::where('enabled', true)->get();
|
||||
if ($scheduled_tasks->isEmpty()) {
|
||||
return;
|
||||
}
|
||||
foreach ($scheduled_tasks as $scheduled_task) {
|
||||
if ($scheduled_task->enabled === false) {
|
||||
continue;
|
||||
}
|
||||
$service = $scheduled_task->service;
|
||||
$application = $scheduled_task->application;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue