Repository navigation
Conversation
Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
This was referenced Nov 29, 2026
Contributor
Author
|
@WaylandYang this follows your three points from #1514 and it's green. The one thing I'd love your view on is the proposer fields in the index key. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thank you for the guidance on #1514, it made this much better than what we first ran.
When a document changes while its extraction is still queued, it now folds into that job instead of adding another, since the job reads the chunks when it runs. Following your three points, it folds only into a job that has not been tried yet (
attempts = 0), so a new version does not inherit the backoff of a failing one. A unique partial index andON CONFLICT DO NOTHINGenforce it, so two pushes at once cannot both get in. The migration removes the duplicates already queued first and keeps the oldest.On the memory path I added
proposed_byandproposed_tokento the index key, with NULL read as empty, so a push by a different person still gets its own job and review credits the right one. The path without a proposer folds as before. If you would rather key ondocument_idalone and handle the proposer another way, I am happy to change it.Requeueing failed jobs now skips a failed extraction that already has a waiting twin, and brings back only the oldest of several failed twins, so the bulk requeue cannot trip the new index. The others stay failed with their errors kept.
Closes #1514