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

v4.1.0 and updated readme

This commit is contained in:
Dean Perry 2022-03-29 20:49:57 +01:00
parent afb6c259bb
commit 5ff70b18fc
3 changed files with 49 additions and 41 deletions

View file

@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- [#101](deanpcmad/sidekiq-limit_fetch#101) Fix stuck queues bug on Redis restart from [@907th](https://github.com/907th).
- #101 - Fix stuck queues bug on Redis restart from [@907th](https://github.com/907th).
## [4.0.0] - 2022-03-26
@ -17,6 +17,6 @@ This project was taken over by [@deanpcmad](https://github.com/deanpcmad)
### Changed
- [#120](deanpcmad/sidekiq-limit_fetch#120) - Migrate CI to GitHub Actions from [@petergoldstein](https://github.com/petergoldstein).
- [#124](deanpcmad/sidekiq-limit_fetch#124) - Fixed redis v4.6.0 pipelines deprecation warning from [@iurev](https://github.com/iurev).
- [#83](deanpcmad/sidekiq-limit_fetch#83) - Processing dynamic queues from [@alexey-yanchenko](https://github.com/alexey-yanchenko).
- #120 - Migrate CI to GitHub Actions from [@petergoldstein](https://github.com/petergoldstein).
- #124 - Fixed redis v4.6.0 pipelines deprecation warning from [@iurev](https://github.com/iurev).
- #83 - Processing dynamic queues from [@alexey-yanchenko](https://github.com/alexey-yanchenko).

View file

@ -1,6 +1,6 @@
## Description
*This project is currently being taken over by [@deanpcmad](https://github.com/deanpcmad) and will be updated soon*
*This project has been taken over by [@deanpcmad](https://github.com/deanpcmad)*
Sidekiq strategy to support a granular queue control limiting, pausing, blocking, querying.
@ -11,7 +11,11 @@ Sidekiq strategy to support a granular queue control limiting, pausing, bloc
Add this line to your application's Gemfile:
```
gem 'sidekiq-limit_fetch'
```
Then `bundle install`.
### Limitations
@ -42,8 +46,8 @@ Or set it dynamically in your code:
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
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
@ -150,4 +154,4 @@ Dynamic queues will be ran at the lowest priority.
### Maintenance
If you use ```flushdb```, restart the sidekiq process to re-populate the dynamic configuration.
If you use `flushdb`, restart the sidekiq process to re-populate the dynamic configuration.

View file

@ -1,6 +1,6 @@
Gem::Specification.new do |gem|
gem.name = 'sidekiq-limit_fetch'
gem.version = '4.0.0'
gem.version = '4.1.0'
gem.license = 'MIT'
gem.authors = ['Dean Perry', 'brainopia']
gem.email = 'dean@deanpcmad.com'
@ -8,6 +8,10 @@ Gem::Specification.new do |gem|
gem.homepage = 'https://github.com/deanpcmad/sidekiq-limit_fetch'
gem.description = "Sidekiq strategy to restrict number of workers which are able to run specified queues simultaneously."
gem.metadata["homepage_uri"] = spec.homepage
gem.metadata["source_code_uri"] = "https://github.com/deanpcmad/sidekiq-limit_fetch"
gem.metadata["changelog_uri"] = "https://github.com/deanpcmad/sidekiq-limit_fetch/blob/master/CHANGELOG.md"
gem.files = `git ls-files`.split($/)
gem.test_files = gem.files.grep %r{^spec/}
gem.require_paths = %w(lib)