feat: support voice asset jobs in generation controls

This commit is contained in:
2026-04-20 17:34:42 +08:00
parent 5066a4e573
commit 8b50674d04
3 changed files with 90 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ def _is_terminal_status(status: str) -> bool:
def _job_supports_queue_control(job: GenerationJob) -> bool:
return job.output_mode in {"story", "storybook"}
return job.output_mode in {"story", "storybook", "asset_generation"}
def generation_job_can_cancel(job: GenerationJob) -> bool: