Refactor sleep duration in check_resources method
This commit is contained in:
parent
6826b6e1f8
commit
c5ca6abb90
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user