class Sidekiq::BasicFetch

def queues_cmd

to honor weights and avoid queue starvation.
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