Class: Sidekiq::NormalizeArgsMiddleware::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/normalize_args_middleware.rb

Overview

Server middleware - runs before perform
Converts string-keyed hashes to HashWithIndifferentAccess for convenience

Instance Method Summary collapse

Instance Method Details

#call(_worker, job, _queue) ⇒ Object

Returns the result of the job block.

Returns:

  • (Object)

    the result of the job block



83
84
85
86
# File 'lib/sidekiq/normalize_args_middleware.rb', line 83

def call(_worker, job, _queue)
  job['args'] = normalize_args(job['args'])
  yield
end