0.0
No commit activity in last 3 years
No release in over 3 years
Sidekiq per queue 'soft' limiting. It ain't perfect, but it's enough.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10

Runtime

~> 4.0
>= 1.4.7
~> 2.0
 Project Readme

sidekiq-qlimit

Per Queue Limit for Sidekiq

Add to your Gemfile

If using Rails 5 - Use sinatra master branch

gem 'sinatra', :require => nil, github: 'sinatra/sinatra', branch: 'master'
gem 'sidekiq'

If using Rails 4 - Make sure you at least have sidekiq

gem 'sidekiq'

Of course, add sidekiq-qlimit

gem 'sidekiq-qlimit', '~> 0'

Bleeding Edge

If you want to ride on the edge of what we're doing

gem 'sidekiq-qlimit', github: 'BrainCom/sidekiq-qlimit', branch: 'master'

If trying to update sidekiq-qlimit gem to the latest version on github/master

$ bundle update sidekiq-qlimit

Initialize

config/sidekiq-qlimit.rb

require "sidekiq/qlimit"
Sidekiq::Qlimit.setup!

Configure

config/sidekiq.yml

---
:concurrency: 5
:pidfile: tmp/pids/sidekiq.pid
:queues:
  - unlimited
  - limited
:qlimit:
  - limited: 2
  - fake: 3

Run

  • rails c
10.times { LimitedWorker.perform_async }
10.times { UnlimitedWorker.perform_async }