refactor a few jobs

This commit is contained in:
Andras Bacsai
2024-11-07 09:16:58 +01:00
parent 33519bf629
commit 2b518e2291
3 changed files with 16 additions and 22 deletions

View File

@@ -48,7 +48,7 @@ class Kernel extends ConsoleKernel
// Instance Jobs
$schedule->command('horizon:snapshot')->everyMinute();
$schedule->job(new CleanupInstanceStuffsJob)->everyMinute()->onOneServer();
$schedule->job(new CheckHelperImageJob)->everyFiveMinutes()->onOneServer();
$schedule->job(new CheckHelperImageJob)->everyTenMinutes()->onOneServer();
// Server Jobs
$this->checkResources($schedule);