1
0
Fork 0
mirror of https://github.com/deanpcmad/sidekiq-limit_fetch.git synced 2022-11-09 13:54:36 -05:00

Update version and readme

This commit is contained in:
brainopia 2013-01-17 19:18:56 +04:00
parent ecf30b21e8
commit 506eaf8145
2 changed files with 14 additions and 3 deletions

View file

@ -19,9 +19,20 @@ Specify limits which you want to place on queues inside sidekiq.yml:
queue_name2: 10
```
In this example, tasks for the first restricted queue will be run by at most 5
workers at the same time and the second queue will have no more than 10
Or set it dynamically in your code:
```ruby
Sidekiq::Queue.new('queue_name1').limit = 5
Sidekiq::Queue['queue_name2'].limit = 10
```
In these examples, tasks for the ```queue_name1``` will be run by at most 5
workers at the same time and the ```queue_name2``` will have no more than 10
workers simultaneously.
Ability to set limits dynamically allows you to resize worker
distribution among queues any time you want.
Limits are applied strictly for current process.
Sponsored by [Evil Martians].
[Evil Martians]: http://evilmartians.com/

View file

@ -1,6 +1,6 @@
Gem::Specification.new do |gem|
gem.name = 'sidekiq-limit_fetch'
gem.version = '0.2'
gem.version = '0.3'
gem.authors = 'brainopia'
gem.email = 'brainopia@evilmartians.com'
gem.summary = 'Sidekig strategy to support queue limits'