Skip to content

river: Set queue names when inserting jobs via trigger#4431

Merged
mastercactapus merged 18 commits intomasterfrom
queue-name-fix
Oct 24, 2025
Merged

river: Set queue names when inserting jobs via trigger#4431
mastercactapus merged 18 commits intomasterfrom
queue-name-fix

Conversation

@mastercactapus
Copy link
Copy Markdown
Member

@mastercactapus mastercactapus commented Oct 22, 2025

Description:
The recent changes for direct-to-queue jobs left out the queue_name column, resulting in all change-triggered jobs going into the default queue, rather than dedicated ones. Additionally, while things should still "work" it means the notifications don't actually get sent to the right place and so jobs are only picked up via the polling fallback mechanism.

This PR corrects this by creating a util function for inserting jobs that handles setting the correct values.

  • create a single util function for inserting river jobs
  • specify queue name for status, signal, and rotation jobs (instead of default -- fixes LISTEN/NOTIFY triggering) by using said util function

Additional Context
This is a largely "it works or it doesn't work at all"-PR, there's good test coverage on the affected features/modules. It boils down to a single migration replacing various functions (down migration contains the original for comparison)

@mastercactapus mastercactapus merged commit e9b4fd9 into master Oct 24, 2025
9 checks passed
@mastercactapus mastercactapus deleted the queue-name-fix branch October 24, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants