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); } /**