fix: improve OCR indexing and evidence review

This commit is contained in:
2026-09-25 19:03:19 +08:00
parent ac1f0ff46d
commit df5fcb4bda
12 changed files with 185 additions and 36 deletions
+1 -1
View File
@@ -485,7 +485,7 @@ def start_batch(batch_id: int, db: Session = Depends(get_db)):
job_timeout="12h", retry=Retry(max=1, interval=[60]))
except Exception as exc:
raise HTTPException(503, f"无法提交后台任务: {type(exc).__name__}") from exc
batch.status, batch.error = "queued", ""
batch.status, batch.error, batch.finished_at = "queued", "", None
db.commit()
return {"id": batch.id, "status": batch.status}