class Sidekiq::BasicFetch
def queues_cmd
recreate the queue command each time we invoke Redis#brpop
data from the first queue that has pending elements. We
configured queue weights. By default Redis#brpop returns
Creating the Redis#brpop command takes into account any
def queues_cmd if @strictly_ordered_queues @queues else permute = @queues.shuffle permute.uniq! permute end end