Update server runtime and comments
This commit is contained in:
parent
467471f54a
commit
4c2b3df861
1 changed files with 3 additions and 3 deletions
|
|
@ -134,11 +134,11 @@ public function isServerReady()
|
|||
$serverUptimeCheckNumberMax = 3;
|
||||
|
||||
$currentTime = now()->timestamp;
|
||||
$runtime5Minutes = 1 * 60;
|
||||
$runtime = 30;
|
||||
|
||||
$isReady = false;
|
||||
// Run for 1 minutes max and check every 5 seconds for 3 times
|
||||
while ($currentTime + $runtime5Minutes > now()->timestamp) {
|
||||
// Run for 30 seconds max and check every 5 seconds for 3 times
|
||||
while ($currentTime + $runtime > now()->timestamp) {
|
||||
if ($serverUptimeCheckNumber >= $serverUptimeCheckNumberMax) {
|
||||
if ($this->unreachable_notification_sent === false) {
|
||||
ray('Server unreachable, sending notification...');
|
||||
|
|
|
|||
Loading…
Reference in a new issue