Skip to content

Instantly share code, notes, and snippets.

@IgorMarques
Last active December 20, 2016 18:19
Show Gist options
  • Save IgorMarques/b14e168f52b1769373069a9b565bbe7a to your computer and use it in GitHub Desktop.
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
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