Class: Yabeda::Shoryuken::ClientMiddleware
- Inherits:
-
Object
- Object
- Yabeda::Shoryuken::ClientMiddleware
- 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( = {}) queue_url = [:queue_url] Yabeda..increment({ queue: queue_url }) yield end |