1
0
Fork 0
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:
Mike Perham 2021-09-30 12:09:15 -07:00
parent 2b2390d579
commit 46f4c6bd9e

View file

@ -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