mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Stringify queue name to handle symbols from YAML cfg, fixes #5006
This commit is contained in:
parent
2b2390d579
commit
46f4c6bd9e
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ module Sidekiq
|
|||
opts[:queues] ||= []
|
||||
opts[:strict] = true if opts[:strict].nil?
|
||||
raise ArgumentError, "queues: #{queue} cannot be defined twice" if opts[:queues].include?(queue)
|
||||
[weight.to_i, 1].max.times { opts[:queues] << queue }
|
||||
[weight.to_i, 1].max.times { opts[:queues] << queue.to_s }
|
||||
opts[:strict] = false if weight.to_i > 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue