coolify/app/Console/Kernel.php

35 lines
920 B
PHP
Raw Normal View History

2023-03-17 15:33:48 +01:00
<?php
namespace App\Console;
2023-05-25 14:23:49 +02:00
use App\Jobs\InstanceAutoUpdateJob;
2023-05-24 14:26:50 +02:00
use App\Jobs\InstanceProxyCheckJob;
2023-05-25 14:23:49 +02:00
use App\Jobs\InstanceDockerCleanupJob;
2023-03-17 15:33:48 +01:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule): void
{
2023-05-23 15:48:05 +02:00
$schedule->command('horizon:snapshot')->everyFiveMinutes();
2023-05-25 14:23:49 +02:00
$schedule->job(new InstanceDockerCleanupJob)->everyFiveMinutes();
2023-05-26 09:10:04 +02:00
$schedule->job(new InstanceAutoUpdateJob)->everyFifteenMinutes();
2023-05-26 09:45:18 +02:00
// $schedule->job(new InstanceProxyCheckJob)->everyMinute();
2023-03-17 15:33:48 +01:00
}
/**
* Register the commands for the application.
*/
protected function commands(): void
{
2023-04-28 09:00:47 +02:00
$this->load(__DIR__ . '/Commands');
2023-03-17 15:33:48 +01:00
require base_path('routes/console.php');
}
}