Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vllm_omni/diffusion/executor/multiproc_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ def collective_rpc(
raise

def check_health(self) -> None:
self._ensure_open()
if self.is_failed:
raise EngineDeadError()
self._ensure_open()
for p in self._processes:
if not p.is_alive():
self.is_failed = True
Expand Down
7 changes: 7 additions & 0 deletions vllm_omni/diffusion/inline_stage_diffusion_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import torch
from PIL import Image
from vllm.logger import init_logger
from vllm.v1.engine.exceptions import EngineDeadError

from vllm_omni.diffusion.data import DiffusionRequestAbortedError
from vllm_omni.diffusion.diffusion_engine import DiffusionEngine
Expand Down Expand Up @@ -329,6 +330,12 @@ async def collective_rpc_async(
None,
)

def check_health(self) -> None:
"""Check if the inline diffusion engine and its workers are healthy."""
if self._shutting_down:
raise EngineDeadError("InlineStageDiffusionClient is shutting down")
self._engine.executor.check_health()

def shutdown(self) -> None:
self._shutting_down = True

Expand Down
Loading