Add all files
This commit is contained in:
16
routes/console.php
Normal file
16
routes/console.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use App\Classes\Settings;
|
||||
use App\Console\Commands\CronJob;
|
||||
use App\Console\Commands\TelemetryCommand;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
use Paymenter\Extensions\Servers\Proxmox\Console\Commands\PollServerStatistics;
|
||||
|
||||
Schedule::command(CronJob::class)->description('Runs daily to send out invoices, suspend servers, etc.')->daily();
|
||||
|
||||
if (config('app.telemetry_enabled')) {
|
||||
$settings = Settings::getTelemetry();
|
||||
Schedule::command(TelemetryCommand::class)->description('Sends telemetry data')->dailyAt($settings['hour'], $settings['minute']);
|
||||
}
|
||||
|
||||
Schedule::command(PollServerStatistics::class)->description('Poll Proxmox server statistics hourly (background routine)')->hourly();
|
||||
Reference in New Issue
Block a user