diff --git a/server/reflector/views/transcripts_process.py b/server/reflector/views/transcripts_process.py index e7b39968..a4f4a47f 100644 --- a/server/reflector/views/transcripts_process.py +++ b/server/reflector/views/transcripts_process.py @@ -27,6 +27,11 @@ async def transcript_process( if transcript.locked: raise HTTPException(status_code=400, detail="Transcript is locked") + if transcript.status == "idle": + raise HTTPException( + status_code=400, detail="Recording is not ready for processing" + ) + if task_is_scheduled_or_active( "reflector.pipelines.main_live_pipeline.task_pipeline_process", transcript_id=transcript_id, diff --git a/www/app/[domain]/browse/page.tsx b/www/app/[domain]/browse/page.tsx index e4946b3d..3c2529fe 100644 --- a/www/app/[domain]/browse/page.tsx +++ b/www/app/[domain]/browse/page.tsx @@ -236,13 +236,14 @@ export default function TranscriptBrowser() { /> setTranscriptToDeleteId(item.id)} icon={} > Delete } >