Method: Sidekiq::Throttled::Middlewares::Server#call
- Defined in:
- lib/sidekiq/throttled/middlewares/server.rb
permalink #call(_worker, msg, _queue) ⇒ Object
[View source]
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/sidekiq/throttled/middlewares/server.rb', line 14 def call(_worker, msg, _queue) yield ensure = Message.new(msg) if .job_class && .job_id Registry.get(.job_class) do |strategy| strategy.finalize!(.job_id, *.job_args) end end end |