forked from mtusi2026/mtusi2026lab3
Fix nginx routing
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user