Last active
December 20, 2016 18:19
-
-
Save IgorMarques/b14e168f52b1769373069a9b565bbe7a to your computer and use it in GitHub Desktop.
A simple example on how to get the latency of a given queue in Sidekiq. Calling the new method without params will use the default queue. Extracted from Sidekiq's official API documentation: https://github.com/mperham/sidekiq/wiki/API#queue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sidekiq::Queue.new('your_queue_name').latency | |
# => 10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment