Update server readiness check runtime to 1 minute

This commit is contained in:
Andras Bacsai 2023-11-16 14:36:43 +01:00
parent d56c28c8d9
commit 5c0f239f62

View File

@ -122,8 +122,8 @@ class Server extends BaseModel
$serverUptimeCheckNumberMax = 5;
$currentTime = now()->timestamp;
$runtime5Minutes = 5 * 60;
// Run for 5 minutes max and check every 5 seconds
$runtime5Minutes = 1 * 60;
// Run for 1 minutes max and check every 5 seconds
while ($currentTime + $runtime5Minutes > now()->timestamp) {
if ($serverUptimeCheckNumber >= $serverUptimeCheckNumberMax) {
if ($this->unreachable_notification_sent === false) {