fix(engine-b): treat unreachable cert endpoint as not-ready (poll, not retry-burn)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>feat/portal-design
parent
03c4b6508f
commit
483a79a822
|
|
@ -35,7 +35,14 @@ class SshTraefikWriter implements TraefikWriter
|
|||
|
||||
public function certReachable(string $fqdn): bool
|
||||
{
|
||||
return Http::timeout(5)->connectTimeout(5)->get("https://{$fqdn}/status.php")->successful();
|
||||
// While DNS propagates / Traefik warms up, the client throws
|
||||
// (ConnectionException, TLS) — that's "not ready yet", not a hard error,
|
||||
// so the step keeps polling instead of burning the retry budget.
|
||||
try {
|
||||
return Http::timeout(5)->connectTimeout(5)->get("https://{$fqdn}/status.php")->successful();
|
||||
} catch (\Throwable) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private function render(string $subdomain, string $fqdn, string $targetHost): string
|
||||
|
|
|
|||
Loading…
Reference in New Issue