Refactor sleep duration in check_resources method

This commit is contained in:
Andras Bacsai 2024-05-16 10:08:13 +02:00
parent 6826b6e1f8
commit c5ca6abb90

View File

@ -80,9 +80,7 @@ private function check_resources($schedule)
$schedule->job(new ContainerStatusJob($server))->everyTwoMinutes()->onOneServer()->before(function () {
if (isCloud()) {
$wait = rand(5, 20);
ray('waiting for ' . $wait . ' seconds');
Sleep::for($wait)->seconds();
ray('waited for ' . $wait . ' seconds');
}
});
if ($server->isLogDrainEnabled()) {