[Bugfix] Keep async video jobs queued until inference and abort on delete (#6759)
Signed-off-by: ZhengWG <zwg0606@gmail.com> Signed-off-by: wuli666 <421774554@qq.com> Co-authored-by: wuli666 <421774554@qq.com>
This commit is contained in:
1 parent
5dbae2b182
commit
275720b378
22 files changed
+549
-44
No files matched your search
@@ -1637,6 +1637,18 @@ class OmniDiffusionConfig:
|
||||
return cls(**cls.normalize_init_kwargs(kwargs))
|
||||
|
||||
|
||||
DIFFUSION_REQUEST_LIFECYCLE_KEY = "_diffusion_request_lifecycle"
|
||||
DIFFUSION_REQUEST_STARTED = "started"
|
||||
|
||||
|
||||
def is_diffusion_request_started_output(output: Any) -> bool:
|
||||
custom_output = getattr(output, "custom_output", None)
|
||||
return (
|
||||
isinstance(custom_output, dict)
|
||||
and custom_output.get(DIFFUSION_REQUEST_LIFECYCLE_KEY) == DIFFUSION_REQUEST_STARTED
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class DiffusionOutput:
|
||||
"""
|
||||
@@ -1685,6 +1697,9 @@ class DiffusionOutput:
|
||||
# mode) and the receiving side must not initialise a stray CUDA context.
|
||||
to_cpu: bool = False
|
||||
|
||||
# Internal control-plane event emitted on first scheduler admission.
|
||||
request_started: bool = False
|
||||
|
||||
# Typed video-media contract. Declared last so the pre-existing positional
|
||||
# constructor order (output, trajectory_timesteps, ...) that out-of-tree
|
||||
# pipelines rely on is preserved. Mutually exclusive with ``output``.
|
||||
|
||||
Reference in new issue
Block a user