From ea972f1461078e5b38de6081d25fe3f4b4bcc5ef Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 30 Mar 2026 09:29:29 -0700 Subject: [PATCH] =?UTF-8?q?feat(imajin-diffusion):=20=E2=9C=A8=20Introduce?= =?UTF-8?q?=20/health=20endpoint=20for=20service=20monitoring=20with=20bas?= =?UTF-8?q?ic=20dependency=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- services/imajin-diffusion/service/src/api/routes/health.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/imajin-diffusion/service/src/api/routes/health.py b/services/imajin-diffusion/service/src/api/routes/health.py index 49cf713a..0ada9d53 100644 --- a/services/imajin-diffusion/service/src/api/routes/health.py +++ b/services/imajin-diffusion/service/src/api/routes/health.py @@ -96,9 +96,8 @@ async def health_check() -> HealthResponse: """Health check endpoint with GPU coordination status.""" import image_pipeline.stages.generate as gen - # Check GPU coordination status - # If _boss is not None, it means it was successfully initialized and connected - gpu_connected = gen._boss is not None + # Check GPU coordination status via v4 initialization gate + gpu_connected = gen._diffusers_loader is not None active_leases = 0 if gen._diffusers_loader is not None: @@ -129,7 +128,7 @@ async def readiness(): import image_pipeline.stages.generate as gen from fastapi import HTTPException - if gen._boss is None: + if gen._diffusers_loader is None: raise HTTPException(status_code=503, detail="GPU coordination not initialized") return {"status": "ready", "service": "imajin-diffusion"}