fix: improve OCR indexing and evidence review
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user