mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
Update server readiness check runtime to 1 minute
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user