Class: Sidetiq::Middleware::History

Inherits:
Object
  • Object
show all
Defined in:
lib/sidetiq/middleware/history.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, msg, queue, &block) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/sidetiq/middleware/history.rb', line 4

def call(worker, msg, queue, &block)
  if worker.kind_of?(Sidetiq::Schedulable)
    call_with_sidetiq_history(worker, msg, queue, &block)
  else
    yield
  end
end