Ap 857 post jobs - #3
Conversation
steve-sullivan
commented
Sep 25, 2026
- Adds POST /jobs endpoint for submitting OCR jobs
- Validates required filelist, languages, and output parameters
- Validates that filelist exists and is a file
- Queues valid jobs using the Celery run_tesseract_job task
- Returns Celery job ID, initial PENDING status, and job-status URL
- Returns 422 responses for invalid requests and 500 responses for queue failures
- Adds unit tests for validation, successful job submission, and queue failures
|
@steve-sullivan When I submit a POST to the From what I can tell, the way we configure the quiabo result backend makes sqlalchemy assume that we have psycopg v3 installed. I think the easiest fix is to change the psycopg dependency line in our pyproject.toml: I did that locally, rebuilt, and then my POST's gave a proper celery response. |
|
fwiw changing
|
anarchivist
left a comment
There was a problem hiding this comment.
rw+c - this looks really great! the one thing to fix is the psycopg dependency as Jason and I reference in our comments.
jason-raitz
left a comment
There was a problem hiding this comment.
rw+c; as we discussed above.