From 69f18f42d1f57e6e1bd2848fb2cb3d2d74c5f7c0 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Sat, 22 Aug 2026 18:12:48 +0200 Subject: [PATCH] Wait for FLUX worker readiness --- router/ai_profile_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/ai_profile_router.py b/router/ai_profile_router.py index 3488d1f..b2454da 100755 --- a/router/ai_profile_router.py +++ b/router/ai_profile_router.py @@ -741,7 +741,7 @@ class _RemoteWorker: self._request("GET", "/health", timeout=3) self.running = True return - except (OSError, urllib.error.URLError, TimeoutError): + except (OSError, urllib.error.URLError, TimeoutError, RuntimeError): time.sleep(1) self.stop() raise RuntimeError("Bild-Worker hat nicht gestartet")