Skip to content

fix: fence PostgreSQL named queues before claiming work - #375

Merged
ovasylenko merged 1 commit into
mainfrom
fix/pg-named-queue-source-guards
Oct 29, 2026
Merged

ovasylenko merged 1 commit into
mainfrom
fix/pg-named-queue-source-guards

Conversation

@ovasylenko

Copy link
Copy Markdown
Contributor

PostgreSQL named-queue polls could select captured or retired work before healthy rows and fail the entire poll. They could also issue a lease for a quarantined native relay. Both global and tenant selectors now exclude those source states before LIMIT, matching the other worker claim paths.

Expanded six existing regression fixtures to PostgreSQL and encrypted PostgreSQL. All 12 new PostgreSQL cases reproduced on main before the fix; the blocked rows remain pending at epoch zero after the fix.

Validation: reproduced all 12 PostgreSQL failures independently on main before the fix. Afterward, all 205 source-cut tests and 96 worker issuance tests passed with required real PostgreSQL and plain/encrypted SQLite/PostgreSQL coverage. Strict storage lint for all targets and workspace formatting also passed.

@ovasylenko
ovasylenko merged commit 191d6d7 into main Oct 29, 2026
25 checks passed
@ovasylenko
ovasylenko deleted the fix/pg-named-queue-source-guards branch October 29, 2026 15:11
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