Update image pull schedule to every five minutes

This commit is contained in:
Andras Bacsai 2024-05-09 15:27:14 +02:00
parent 094bb37049
commit 1bb0d54dce

View File

@ -58,8 +58,8 @@ private function pull_helper_image($schedule)
{
$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();
$schedule->job(new PullSentinelImageJob($server))->everyFiveMinutes()->onOneServer();
$schedule->job(new PullHelperImageJob($server))->everyFiveMinutes()->onOneServer();
}
}
private function check_resources($schedule)