Allow excluding specific runtime queues - #142
Merged
Merged
Conversation
reneklacan
enabled auto-merge
August 30, 2026 21:01
robertvanhoesel
approved these changes
Aug 30, 2026
reneklacan
added a commit
that referenced
this pull request
Aug 31, 2026
Allow excluding specific runtime 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::except_queue::<Q>()denylistWhen combined with
only_queue, the allowlist selects queues first and the denylist removes excluded matches.Verification
cargo fmt --all -- --checkcargo clippy --all-features --workspacecargo test -p oxana runtime::testscargo test -p oxana --test integration --no-runThe Redis-backed integration test was compiled but not executed locally because
REDIS_URLis not configured in this environment.Note
Low Risk
Additive runtime configuration with validation and tests; behavior for callers not using except_queue is unchanged aside from the static-queue allowlist check fix in runs_static_queue.
Overview
Adds
RuntimeBuilder::except_queue::<Q>()so workers can run all registered queues except named ones, mirroring the existingonly_queueallowlist.Runtime settings gain a
queue_denylist;runs_queueandruns_static_queuenow require a queue to pass the allowlist (if any) and not appear on the denylist. Excluding a dynamic parent queue skips its subqueues; existing launcher checks skip coordinators and cron scheduling for excluded queues.runfails fast with a config error if an excluded queue was never registered.README documents the API and behavior alongside
only_queue. Unit and Redis integration tests cover denylist building, dynamic exclusions, validation, and end-to-end job processing.Reviewed by Cursor Bugbot for commit 53f2230. Bugbot is set up for automated code reviews on this repo. Configure here.