Skip to content

Prevent SQLite driver from adding nil placeholders for missing jobs#1312

Merged
brandur merged 1 commit into
masterfrom
brandur-sqlite-return-fix
Jul 17, 2026
Merged

Prevent SQLite driver from adding nil placeholders for missing jobs#1312
brandur merged 1 commit into
masterfrom
brandur-sqlite-return-fix

Conversation

@brandur

@brandur brandur commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

This one's a follow up to #1308 which modifies the completers to handle
a rare condition where no rows are returned from JobSetStateIfRunningMany.
Codex caught it while I was looking at the other PR.

Here, also modify JobSetStateIfRunningMany in the SQLite driver so
that if a job is missing from query return, in omits the element
completely instead of adding a nil element in the return slice,
bringing its behavior in line with Postgres. We add a check in the
driver test suite to verify the consistent behavior.

This one's a follow up to #1308 which modifies the completers to handle
a rare condition where no rows are returned from `JobSetStateIfRunningMany`.
Codex caught it while I was looking at the other PR.

Here, also modify `JobSetStateIfRunningMany` in the SQLite driver so
that if a job is missing from query return, in omits the element
completely instead of adding a `nil` element in the return slice,
bringing its behavior in line with Postgres. We add a check in the
driver test suite to verify the consistent behavior.
@brandur
brandur merged commit 96b7413 into master Jul 17, 2026
25 of 27 checks passed
@brandur
brandur deleted the brandur-sqlite-return-fix branch July 17, 2026 04:26
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