Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

only get enabled scheduled tasks

Andras Bacsai4b3bf832f5b9
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index 8b60c694b7..3e3ae0834f 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -179,14 +179,11 @@ class Kernel extends ConsoleKernel
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;