Fix nginx routing

This commit is contained in:
2026-10-24 00:43:12 +03:00
parent 3417e22ba0
commit c8fc32e8b1
18 changed files with 442 additions and 221 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def wait_api(count=2, timeout=60):
while time.monotonic() < deadline:
rows = snapshot('api')
if len(rows) == count and all(r['health'] == 'healthy' and r['state'] == 'running' for r in rows):
time.sleep(3) # Docker DNS validity 2s, plus resolver budget 1s.
time.sleep(3) # Allow the nginx readiness poll (2s) and reload.
return rows
time.sleep(0.5)
raise RuntimeError('API replicas did not become healthy')