deanpcmad / sidekiq-limit_fetch

A Sidekiq plugin to support advanced queue control (limiting, pausing, blocking, querying)
MIT License
948 stars 140 forks source link

undefined method `to_sym' for ["active_storage_analysis", 4]:Array #153

Closed javinto closed 1 year ago

javinto commented 1 year ago

On updating to Sidekiq 7 and sidekiq-limit-fetch I run into this exception:

undefined method `to_sym' for ["active_storage_analysis", 4]:Array
queue.process_limit = @process_limits[queue_name.to_s] || @process_limits[queue_name.to_sym]
                                                                                        ^^^^^^^
Did you mean?  to_s
               to_set
/Users/me/.rvm/gems/ruby-3.1.2@project/gems/sidekiq-limit_fetch-4.4.0/lib/sidekiq/limit_fetch/queues.rb:121:in `apply_process_limit_to_queue'

In my sidekiq configuration file I have defined: :queues:

It looks like Sidekiq-limit-fetch cannot handle queue priorities anymore.

deanpcmad commented 1 year ago

Can you try using the master branch and see if that latest commit fixes it?

javinto commented 1 year ago

Same issue with Master branche unfortunately.

nisyuu commented 1 year ago

Hi, everyone 😀 ! I tried to fix this problem in #155. I'm not familiar with sidekiq-limit_fetch so I can't guarantee the fixes.