Skip to content

delete document + inngest fix. No longer need to run pnpm inngest#218

Merged
Deodat-Lawson merged 1 commit intomainfrom
timothy/bugfix/inngest-pipeline-time
Feb 28, 2026
Merged

delete document + inngest fix. No longer need to run pnpm inngest#218
Deodat-Lawson merged 1 commit intomainfrom
timothy/bugfix/inngest-pipeline-time

Conversation

@Deodat-Lawson
Copy link
Owner

No description provided.

@vercel
Copy link

vercel bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pdr-ai-v2 Building Building Preview, Comment Feb 28, 2026 6:41pm

@Deodat-Lawson Deodat-Lawson merged commit 2313c45 into main Feb 28, 2026
3 of 4 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +74 to +76
.update(ocrJobs)
.set({ ocrResult: { ...existing, [key]: data } })
.where(eq(ocrJobs.id, jobId));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant