Skip to content

A document waits for one queued extraction - #71

Merged
gedaiu merged 1 commit into
re-devfrom
fix/one-queued-extraction-per-document
Nov 17, 2026
Merged

gedaiu merged 1 commit into
re-devfrom
fix/one-queued-extraction-per-document

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 17, 2026

Copy link
Copy Markdown

extract_document carries only the document id and reads the current chunks when it runs, yet nothing checked for one already waiting, so a document that changed three times while the queue was behind got three jobs. On our instance 29,493 were queued for 12,986 documents. jobs::enqueue_extraction now queues one only when none is queued for the same document_id (a running one does not count, since it may have read the old version), both enqueue sites use it, and migration 9011 adds a partial index for the check and removes the repeats already queued, keeping each document's oldest job. RC-009 records the decision. Upstream: deeplethe#1514.

…ueued are removed

Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
@gedaiu
gedaiu merged commit 4f55a7b into re-dev Nov 17, 2026
6 checks passed
gedaiu added a commit to re-cinq/lore that referenced this pull request Nov 17, 2026
… extraction (#4826)

Pins the install chart to Utopia `0.1.0-re.34` (index digest
`sha256:964c2d24…13da`). re.34 is re-cinq/utopia#71: `extract_document`
is queued only when no job waits for the same document, and migration
9011 removes the repeats already queued, keeping each document's oldest
job (RC-009; upstream deeplethe/utopia#1514). The internal cluster
already runs re.34: Utopia's release job pinned it in re-cinq/utopia
`deploy/clusters/internal-cluster.values.yaml`.

Closes #4745
Related: #4728, #4757, #4822 (closed when its branch was deleted early)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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