Skip to content

Commit

Permalink
Refactor sleep duration in check_resources method
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed May 16, 2024
1 parent 6826b6e commit c5ca6ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit c5ca6ab

Please sign in to comment.