fix(music-lab): compile job status='done'도 ready로 인식 (production convention)
This commit is contained in:
@@ -953,7 +953,7 @@ def create_pipeline(req: PipelineCreate):
|
||||
job = _db_module.get_compile_job(req.compile_job_id)
|
||||
if not job:
|
||||
raise HTTPException(404, f"compile job {req.compile_job_id} 없음")
|
||||
if job.get("status") != "succeeded":
|
||||
if job.get("status") not in ("done", "succeeded"):
|
||||
raise HTTPException(400, f"compile job {req.compile_job_id} not ready (status={job.get('status')})")
|
||||
|
||||
# 동일 입력으로 이미 active 파이프라인 있으면 409
|
||||
|
||||
Reference in New Issue
Block a user