diff --git a/backend/api/routes/jobs.py b/backend/api/routes/jobs.py index 193c559d..02d091c2 100644 --- a/backend/api/routes/jobs.py +++ b/backend/api/routes/jobs.py @@ -22,7 +22,7 @@ from google.cloud.exceptions import NotFound from backend.utils.loop_bridge import run_in_body_thread, run_on_loop from backend.utils.request_helpers import get_client_ip from backend.services.review_state import ensure_in_review -from backend.models.job import Job, JobCreate, JobResponse, JobStatus, STATE_TRANSITIONS +from backend.models.job import Job, JobCreate, JobResponse, JobStatus from backend.models.requests import ( URLSubmissionRequest, CorrectionsSubmission, @@ -1114,12 +1114,6 @@ def start_review( if not _check_job_ownership(job, auth_result): raise HTTPException(status_code=403, detail=t(locale, "jobs.noPermissionAccess")) - # The review is over (auto-approved, submitted, finished): an expected answer - # for a stale link or notification, not a server error. Clients go to the job. - if job.status != JobStatus.IN_REVIEW and JobStatus.IN_REVIEW not in STATE_TRANSITIONS.get(job.status, []): - logger.info(f"Job {job_id}: start-review refused, status is {job.status}") - raise HTTPException(status_code=409, detail=t(locale, "jobs.reviewCannotStart")) - # Idempotent: concurrent/duplicate opens (React double-mount, double-tap, two # tabs) must not fail with "in_review -> in_review". Already in review == success, # and the one-time side effects (record_review_started) are not repeated. diff --git a/pyproject.toml b/pyproject.toml index 73c4dc76..7c01cf88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "karaoke-gen" -version = "0.290.2" +version = "0.290.3" description = "Generate karaoke videos with synchronized lyrics. Handles the entire process from downloading audio and lyrics to creating the final video with title screens." authors = ["Andrew Beveridge "] license = "MIT"