From c5ca6abb90a7a53602842bdd888022bb931ba0a5 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 16 May 2024 10:08:13 +0200 Subject: [PATCH] Refactor sleep duration in check_resources method --- app/Console/Kernel.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 30276f729..99ca75352 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -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()) {