Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Database\Console\PruneCommand;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Spatie\Health\Commands\DispatchQueueCheckJobsCommand;
use Spatie\Health\Commands\RunHealthChecksCommand;
use Spatie\Health\Commands\ScheduleCheckHeartbeatCommand;

Expand Down Expand Up @@ -60,6 +61,7 @@ protected function schedule(Schedule $schedule): void
}

$schedule->command(ScheduleCheckHeartbeatCommand::class)->everyMinute();
$schedule->command(DispatchQueueCheckJobsCommand::class)->everyMinute();
$schedule->command(RunHealthChecksCommand::class)->everyFiveMinutes();
}
}
2 changes: 2 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
use Illuminate\Support\Str;
use Laravel\Passkeys\Passkeys;
use Laravel\Sanctum\Sanctum;
use Spatie\Health\Checks\Checks\QueueCheck;
use Spatie\Health\Facades\Health;

class AppServiceProvider extends ServiceProvider
Expand Down Expand Up @@ -110,6 +111,7 @@ public function boot(
EnvironmentCheck::new(),
CacheCheck::new(),
DatabaseCheck::new(),
QueueCheck::new(),
ScheduleCheck::new(),
UsedDiskSpaceCheck::new(),
PanelVersionCheck::new(),
Expand Down
Loading