Skip to content

Allow excluding specific runtime queues - #142

Merged
reneklacan merged 1 commit into
mainfrom
except-queue
Aug 30, 2026
Merged

Allow excluding specific runtime queues#142
reneklacan merged 1 commit into
mainfrom
except-queue

Conversation

@reneklacan

@reneklacan reneklacan commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

  • add a repeatable RuntimeBuilder::except_queue::<Q>() denylist
  • skip excluded queue coordinators and cron scheduling
  • reject excluded queues that were not registered
  • support dynamic parent queue exclusions and document the API

When combined with only_queue, the allowlist selects queues first and the denylist removes excluded matches.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-features --workspace
  • cargo test -p oxana runtime::tests
  • cargo test -p oxana --test integration --no-run

The Redis-backed integration test was compiled but not executed locally because REDIS_URL is 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 existing only_queue allowlist.

Runtime settings gain a queue_denylist; runs_queue and runs_static_queue now 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. run fails 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.

@reneklacan
reneklacan enabled auto-merge August 30, 2026 21:01
@reneklacan
reneklacan merged commit 3b7cbca into main Aug 30, 2026
2 checks passed
@reneklacan
reneklacan deleted the except-queue branch August 30, 2026 21:06
reneklacan added a commit that referenced this pull request Aug 31, 2026
Allow excluding specific runtime queues
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.

2 participants