Keeps track of Sidekiq job count and adds a tab to the Web UI to let you view totals.
Add this line to your application's Gemfile:
gem 'sidekiq-queue-stats'
Simply having the gem in your Gemfile is enough to get you started. Your job count will be visible via a Queue Stats tab in the Web UI.
Add this block to config/initializers/sidekiq.rb
Sidekiq::QueueStats.configure do |config|
config.max_limit = 50000
end
Iterating through large queues can be resource intensive and take quite a lot of time. This option lets you set an integer to only show queue stats of queues under a pre defined threashold.
Depends on Sidekiq >= 2.16.0
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Released under the MIT License. See the LICENSE file for further details.