Skip to content

Fix periodic state advance on insert error - #1359

Open
BreezeDelegate wants to merge 2 commits into
riverqueue:masterfrom
BreezeDelegate:fix/periodic-insert-error-state
Open

Fix periodic state advance on insert error#1359
BreezeDelegate wants to merge 2 commits into
riverqueue:masterfrom
BreezeDelegate:fix/periodic-insert-error-state

Conversation

@BreezeDelegate

Copy link
Copy Markdown

Stops insertBatch before the durable next_run_at upsert when periodic job insertion fails.

Adds a regression test for the insert-error path.

Fixes #1304

@brandur

brandur commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Hah, we actually had one other person find this in #1348, but they stopped replying to the PR.

Do you want to add a changelog entry and add yourself to the CLA? https://github.com/riverqueue/rivercla

@BreezeDelegate

Copy link
Copy Markdown
Author

Yep, happy to. I added the changelog entry. For the CLA, is it okay to sign under my usual GitHub name/pseudonym (BreezeDelegate) rather than publishing my legal name?

@brandur

brandur commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Yep, happy to. I added the changelog entry. For the CLA, is it okay to sign under my usual GitHub name/pseudonym (BreezeDelegate) rather than publishing my legal name?

Okay that works. Just make sure changes are tied back to the same GitHub handle.

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.

Periodic job next_run_at can advance after job insert failure

2 participants