Class: Resque::Plugins::Async::Worker

Inherits:
Object
  • Object
show all
Extended by:
LockTimeout
Defined in:
lib/resque/plugins/async/worker.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.lock_timeoutObject

Returns the value of attribute lock_timeout.



14
15
16
# File 'lib/resque/plugins/async/worker.rb', line 14

def lock_timeout
  @lock_timeout
end

.lonerObject

Returns the value of attribute loner.



13
14
15
# File 'lib/resque/plugins/async/worker.rb', line 13

def loner
  @loner
end

.queueObject

Returns the value of attribute queue.



12
13
14
# File 'lib/resque/plugins/async/worker.rb', line 12

def queue
  @queue
end

Class Method Details

.perform(klass, *args) ⇒ Object



16
17
18
# File 'lib/resque/plugins/async/worker.rb', line 16

def perform klass, *args
  klass.constantize.find(args.shift).send(args.shift, *args)
end