Module: Resque::Integration::Extensions::Worker

Defined in:
lib/resque/integration/extensions/worker.rb

Instance Method Summary collapse

Instance Method Details

#queuesObject



5
6
7
8
# File 'lib/resque/integration/extensions/worker.rb', line 5

def queues
  queues = super
  shuffle? ? queues.shuffle : queues
end

#shuffle?Boolean

Returns:

  • (Boolean)


10
11
12
13
# File 'lib/resque/integration/extensions/worker.rb', line 10

def shuffle?
  return @shuffle if defined?(@shuffle)
  @shuffle = !ENV['SHUFFLE'].to_s.empty?
end