fix: allow proxy image startup time

This commit is contained in:
2026-09-23 00:52:49 +08:00
parent 2b93545507
commit 1a534c7976

View File

@@ -236,7 +236,7 @@ def main() -> None:
stderr=subprocess.PIPE,
text=True,
)
deadline = time.monotonic() + 30
deadline = time.monotonic() + 120
while time.monotonic() < deadline:
if nginx.poll() is not None:
raise RuntimeError(f"Nginx exited with code {nginx.returncode}")
@@ -246,7 +246,13 @@ def main() -> None:
except OSError:
time.sleep(0.2)
else:
raise RuntimeError("Nginx did not start listening")
nginx_logs = subprocess.run(
["docker", "logs", nginx_name], capture_output=True, text=True, check=False
)
raise RuntimeError(
f"Nginx did not start listening; logs="
f"{(nginx_logs.stdout + nginx_logs.stderr)[-4000:]!r}"
)
try:
wait_for_proxy(edge_port, 30)