Implement lab5 async image processing with RabbitMQ and outbox

This commit is contained in:
ferraronp
2026-11-16 16:08:39 +03:00
parent 276dbdad8a
commit b61a1cae9e
43 changed files with 3020 additions and 45 deletions
+14
View File
@@ -0,0 +1,14 @@
"""Operator-facing readiness wait after container replacement."""
import time
import urllib.request
for _ in range(120):
try:
with urllib.request.urlopen("http://localhost:8080/health/ready", timeout=2) as response:
if response.status == 200:
print("[restart] all services ready")
break
except Exception:
pass
time.sleep(.5)
else:
raise SystemExit("[restart] health timeout")