-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command-line arguments don't override config file weighted/ordered queues setting #2228
Comments
(In my case, I didn't actually need any settings from the config file, so adding a |
I think your expectation is correct. |
Took a look at this bug. How would we want to handle queue priorities when the number of queues on the CLI is greater than 10? My initial hunch is to start the implied weight at 10 and drop to 1; then any queue after 10 default to 1. Sound about right? |
Either the weight is specified or it is 1. |
No plans to fix. |
In Sidekiq 6, the |
Usually, if a setting appears in both the config file and the command-line arguments to the
sidekiq
command, the command-line argument takes precedence. This doesn't happen in the case of the implicit weighted/ordered queues setting, however.In a new Rails app, if
config/sidekiq.yml
containsand I run
bundle exec sidekiq -q foo -q bar
, I expect Sidekiq to execute jobs frombar
only whenfoo
is empty. Instead, the worker randomly takes jobs fromfoo
andbar
.The text was updated successfully, but these errors were encountered: