Class: Resque::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/marginalia-resque.rb

Instance Method Summary collapse

Instance Method Details

#perform_with_marginalia(job) ⇒ Object



42
43
44
45
46
# File 'lib/marginalia-resque.rb', line 42

def perform_with_marginalia(job)
  Marginalia::Resque.update_with_job!(job.payload_class, job.args)
  perform_without_marginalia(job)
  Marginalia::Resque.clear_after_job!
end