Allow selectively running specific queues - #140
Merged
Conversation
robertvanhoesel
approved these changes
Aug 30, 2026
reneklacan
enabled auto-merge
August 30, 2026 20:06
reneklacan
added a commit
that referenced
this pull request
Aug 31, 2026
Allow selectively running specific queues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RuntimeBuilder::only_queue::<Q>()allowlistVerification
cargo fmt --all -- --checkcargo clippy --all-features --workspace(passes with one pre-existing removed-lint warning)cargo test -p oxana runtime::testscargo test -p oxana --test integration --no-runcargo check --all-features --workspaceThe Redis-backed integration test was compiled but not executed locally because
REDIS_URLis not configured in this environment.Note
Low Risk
Opt-in runtime filtering with unchanged default behavior; misconfiguration is caught at startup when a selected queue is not registered.
Overview
Adds
RuntimeBuilder::only_queue::<Q>(), repeatable, so one worker process can register every queue and worker but only run coordinators (and related cron scheduling) for an allowlisted subset. With noonly_queuecalls, behavior is unchanged: all registered queues run.RuntimeSettingsstores aqueue_allowlist; empty means “all queues.”runs_queuegates queue coordinators in the launcher;runs_static_queueskips cron loops whose target queue key is not selected. Selecting a dynamic queue is documented to include all discovered subqueues.run()fails fast withConfigErrorif any selected queue was never registered. Registration andcatalog()still list every queue; only execution is filtered.README documents the API; unit tests cover allowlist defaults, catalog unchanged, dynamic selection, and unregistered selection; an integration test asserts jobs on a non-selected queue stay enqueued.
Reviewed by Cursor Bugbot for commit 4fb39b0. Bugbot is set up for automated code reviews on this repo. Configure here.