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
|
||||
|
||||
@@ -71,7 +71,7 @@ def _resolve_input(p: dict) -> dict:
|
||||
|
||||
if compile_id is not None:
|
||||
job = db.get_compile_job(compile_id)
|
||||
if not job or job.get("status") != "succeeded":
|
||||
if not job or job.get("status") not in ("done", "succeeded"):
|
||||
raise ValueError(
|
||||
f"compile job {compile_id} not ready "
|
||||
f"(status={job.get('status') if job else None})"
|
||||
|
||||
Reference in New Issue
Block a user