-
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
Sidekiq Pro, Redis::CommandError: ERR wrong number of arguments for 'brpop' command, when pausing queue #4825
Closed
thibaudgg opened this issue
Feb 23, 2021
· 1 comment
· Fixed by pooza/makoto#489, pooza/mulukhiya-toot-proxy#2025, discourse/discourse#12406, iwaseasahi/christchurches-map#675 or ledermann/docker-rails#1958
Closed
Sidekiq Pro, Redis::CommandError: ERR wrong number of arguments for 'brpop' command, when pausing queue #4825
thibaudgg opened this issue
Feb 23, 2021
· 1 comment
· Fixed by pooza/makoto#489, pooza/mulukhiya-toot-proxy#2025, discourse/discourse#12406, iwaseasahi/christchurches-map#675 or ledermann/docker-rails#1958
Comments
Thanks for the quick fix @mperham! 👍 |
This was referenced Mar 15, 2021
This was referenced Mar 16, 2021
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ruby version: 2.6.6
Rails version: 6.0.3.5
Sidekiq / Pro / Enterprise version(s): 6.1.2 / 5.2.0 / 2.1.2
Hi,
We are getting this
Redis::CommandError: ERR wrong number of arguments for 'brpop' command
error, when pausing a queue from the Web UI queues list.This issue is easily reproducible and is only happening when the paused queue is the only one processed by the
sidekiq
command, i.e.sidekiq-q default
. When two queues are processed (i.e.sidekiq -q default -q low
) this error isn't triggered unless the two queues are paused together. To resume, this is triggered when the last active queue is paused.We found that this issue is coming from the
basic_fetch
strategy overwritten in Sidekiq Pro as we aren't using thesuper_fetch
strategy.Sidekiq Pro overwrittes the
Sidekiq::Pro::BasicFetch::queues_cmd
method and left the@queues
variable empty when only one queue is processed (seequeues = (@original - @paused.to_a).map { |q| "queue:#{q}" }
), which then triggers this error from here: https://github.com/mperham/sidekiq/blob/3b5ae30c4e5e9e760268243ab5c14664a2f8d236/lib/sidekiq/fetch.rb#L39Backtrace:
The text was updated successfully, but these errors were encountered: