Fix wait_ready to poll root endpoint instead of /health

sd-server doesn't have a /health endpoint - it returns 404.
The root endpoint (/) returns 200 with "Stable Diffusion Server is running".

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Adam Ladachowski
2026-02-14 02:31:18 +01:00
parent f1b3aa9dd1
commit 1a7aa834a5
+2 -2
View File
@@ -71,10 +71,10 @@ class ProcessManager:
}
async def wait_ready(self, timeout: float = 120) -> bool:
"""Poll sd-server /health until it responds or timeout."""
"""Poll sd-server root endpoint until it responds or timeout."""
if self.config is None:
return False
url = f"http://127.0.0.1:{self.config.port}/health"
url = f"http://127.0.0.1:{self.config.port}/"
deadline = asyncio.get_event_loop().time() + timeout
async with httpx.AsyncClient() as client:
while asyncio.get_event_loop().time() < deadline: