Class: PerformLater::Workers::Objects::LoneWorker

Inherits:
Base
  • Object
show all
Defined in:
lib/perform_later/workers/objects/lone_worker.rb

Class Method Summary collapse

Class Method Details

.perform(klass_name, method, *args) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/perform_later/workers/objects/lone_worker.rb', line 5

def self.perform(klass_name, method, *args)
  digest = PerformLater::PayloadHelper.get_digest(klass_name, method, args)
  Resque.redis.del(digest)

  arguments = PerformLater::ArgsParser.args_from_resque(args)
  
  perform_job(klass_name.constantize, method, arguments)
end