Class: Yabeda::Shoryuken::ClientMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/yabeda/shoryuken/client_middleware.rb

Overview

Client middleware to count number of enqueued jobs

Instance Method Summary collapse

Instance Method Details

#call(options = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/yabeda/shoryuken/client_middleware.rb', line 7

def call(options = {})
  queue_url = options[:queue_url]

  Yabeda.shoryuken_messages_enqueued_total.increment({ queue: queue_url })

  yield
end