Class: Sidekiq::CustomQueue::ClientMiddleware
- Inherits:
-
Object
- Object
- Sidekiq::CustomQueue::ClientMiddleware
- Defined in:
- lib/sidekiq/custom_queue/client_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(worker_class, msg, queue, _redis_pool) ⇒ Object
4 5 6 7 8 |
# File 'lib/sidekiq/custom_queue/client_middleware.rb', line 4 def call(worker_class, msg, queue, _redis_pool) worker = worker_class.constantize queue.replace(worker.custom_queue(msg).to_s) if worker.respond_to?(:custom_queue) yield end |