Skip to content

feat(stovepipe): advance queue latest_request_id on ingest#323

Merged
mnoah1 merged 2 commits into
mainfrom
mnoah1/stovepipe-ingest-queue-wiring
Jul 10, 2026
Merged

feat(stovepipe): advance queue latest_request_id on ingest#323
mnoah1 merged 2 commits into
mainfrom
mnoah1/stovepipe-ingest-queue-wiring

Conversation

@mnoah1

@mnoah1 mnoah1 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What?

  • After ingest inserts a new request row, advance that queue's latest request ID

Why?

Test Plan

  • Unit tests wire QueueStore expectations; integration test asserts latest_request_id on ingest

@mnoah1 mnoah1 marked this pull request as ready for review July 9, 2026 14:59
@mnoah1 mnoah1 requested review from a team, behinddwalls and sbalabanov as code owners July 9, 2026 14:59
@mnoah1 mnoah1 force-pushed the mnoah1/stovepipe-request-entity branch from bbf0abf to 90cbeef Compare July 9, 2026 18:20
@mnoah1 mnoah1 force-pushed the mnoah1/stovepipe-ingest-queue-wiring branch from 6a281c4 to b27d20c Compare July 10, 2026 14:27
@mnoah1 mnoah1 force-pushed the mnoah1/stovepipe-request-entity branch from 90cbeef to e7aaff3 Compare July 10, 2026 18:08
@mnoah1 mnoah1 force-pushed the mnoah1/stovepipe-ingest-queue-wiring branch from fee8ec1 to 5f7ab76 Compare July 10, 2026 18:13
@mnoah1 mnoah1 force-pushed the mnoah1/stovepipe-request-entity branch from e7aaff3 to 6bbe4ad Compare July 10, 2026 18:41
@behinddwalls

Copy link
Copy Markdown
Collaborator

⚠️ Automatic stack rebase failed

This PR could not be automatically rebased after its base PR was merged. The rebase hit conflicts that need manual resolution.

To fix manually:

git fetch origin
git checkout mnoah1/stovepipe-ingest-queue-wiring
git rebase --onto origin/main 6bbe4ad9380e0e0dd8d24b228f93004ee0b08c0d mnoah1/stovepipe-ingest-queue-wiring
# resolve conflicts, then:
git push --force-with-lease

Then update this PR's base branch:

gh pr edit 323 --base main

Base automatically changed from mnoah1/stovepipe-request-entity to main July 10, 2026 18:47
mnoah1 added 2 commits July 10, 2026 18:50
After ensureRequest succeeds, CAS-update the queue row's latest_request_id
when the request id is newer. CompareRequestID makes the advance a no-op on
dedup re-ingests; optimistic-lock retries handle concurrent ingests.
Replace the missing QueueStore.GetOrCreate call with ensureQueue,
matching the ensureRequest pattern used elsewhere in the ingest controller.
@mnoah1 mnoah1 force-pushed the mnoah1/stovepipe-ingest-queue-wiring branch from 5f7ab76 to 1cb5649 Compare July 10, 2026 18:50
@mnoah1 mnoah1 added this pull request to the merge queue Jul 10, 2026
Merged via the queue into main with commit 87edf75 Jul 10, 2026
15 checks passed
@mnoah1 mnoah1 deployed to stack-rebase July 10, 2026 20:07 — with GitHub Actions Active
@behinddwalls behinddwalls deleted the mnoah1/stovepipe-ingest-queue-wiring branch July 10, 2026 20:07
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.

2 participants