Class: Cased::Integrations::Sidekiq::ClientMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/cased/integrations/sidekiq/client_middleware.rb

Instance Method Summary collapse

Instance Method Details

#call(_worker_class, job, _queue, _redis_pool) ⇒ Object



7
8
9
10
# File 'lib/cased/integrations/sidekiq/client_middleware.rb', line 7

def call(_worker_class, job, _queue, _redis_pool)
  job['cased_context'] = Cased.context.context
  yield
end