From 83bb75f3be12b130e247e2a2f44754fed090b7eb Mon Sep 17 00:00:00 2001 From: denis Date: Sun, 3 Nov 2024 02:18:17 -0500 Subject: [PATCH] Update app/Console/Kernel.php --- app/Console/Kernel.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index f512ea8..52fb463 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,18 +1,18 @@ command(ProcessRunnableCommand::class)->everyMinute()->withoutOverlapping(); + $schedule->command(CleanServiceBackupFilesCommand::class)->daily(); + $schedule->command(PruneImagesCommand::class)->daily(); + $schedule->command(CheckEggUpdatesCommand::class)->hourly(); + + $schedule->job(new NodeStatistics())->everyFiveSeconds()->withoutOverlapping(); if (config('backups.prune_age')) { // Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted. @@ -45,11 +50,9 @@ class Kernel extends ConsoleKernel $schedule->command(PruneCommand::class, ['--model' => [ActivityLog::class]])->daily(); } - if (config('pterodactyl.telemetry.enabled')) { - $this->registerTelemetry($schedule); + if (config('panel.webhook.prune_days')) { + $schedule->command(PruneCommand::class, ['--model' => [Webhook::class]])->daily(); } - - GetExtensionSchedules::schedules($schedule); } /**