feat: pull new sentinel image and restart container

This commit is contained in:
Andras Bacsai
2024-05-08 19:19:32 +02:00
parent 76a5290351
commit 1a152a5597
7 changed files with 76 additions and 20 deletions

View File

@@ -9,6 +9,7 @@ use App\Jobs\ScheduledTaskJob;
use App\Jobs\InstanceAutoUpdateJob;
use App\Jobs\ContainerStatusJob;
use App\Jobs\PullHelperImageJob;
use App\Jobs\PullSentinelImageJob;
use App\Jobs\ServerStatusJob;
use App\Models\InstanceSettings;
use App\Models\ScheduledDatabaseBackup;
@@ -57,6 +58,7 @@ class Kernel extends ConsoleKernel
{
$servers = Server::all()->where('settings.is_usable', true)->where('settings.is_reachable', true)->where('ip', '!=', '1.2.3.4');
foreach ($servers as $server) {
$schedule->job(new PullSentinelImageJob($server))->everyMinute()->onOneServer();
$schedule->job(new PullHelperImageJob($server))->everyTenMinutes()->onOneServer();
}
}