Skip to content

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

Open
brandur wants to merge 1 commit into
masterfrom
brandur-sqlite-return-fix
Open

Prevent SQLite driver from adding nil placeholders for missing jobs#1312
brandur wants to merge 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.
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