delete document + inngest fix. No longer need to run pnpm inngest#218
delete document + inngest fix. No longer need to run pnpm inngest#218Deodat-Lawson merged 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ddf476393c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .update(ocrJobs) | ||
| .set({ ocrResult: { ...existing, [key]: data } }) | ||
| .where(eq(ocrJobs.id, jobId)); |
There was a problem hiding this comment.
Ensure pipeline state writes fail when job row is missing
savePipelineState currently treats a missing ocr_jobs row as success, because the update(...).where(id = jobId) result is not checked. In the upload flow, triggerDocumentProcessing(...) runs before db.insert(ocrJobs) (src/server/services/document-upload.ts), so an early-starting Inngest run can execute this update against zero rows; the pipeline then reaches loadPipelineState("pages") and fails with Pipeline state "pages" not found despite a valid document upload. This introduces intermittent ingestion failures/retries depending on timing.
Useful? React with 👍 / 👎.
No description provided.