sidekiq-addons 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +17 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +81 -0
- data/LICENSE.txt +21 -0
- data/README.md +109 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/sidekiq/addons/prioritize/deqr.rb +59 -0
- data/lib/sidekiq/addons/prioritize/enqr.rb +67 -0
- data/lib/sidekiq/addons/util.rb +22 -0
- data/lib/sidekiq/addons/version.rb +5 -0
- data/lib/sidekiq/addons.rb +34 -0
- data/sidekiq-addons.gemspec +27 -0
- metadata +129 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e0d728ca590a42de552c8001f5989e80202d2586
|
4
|
+
data.tar.gz: 47a28b8b736713b12b1443f35eb44f61b5fc6b3e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 526bb3c5ad5841f0bda1e7a94f0ce9879d00bbe0c7932e9b7ba5773ea55f1a45d13be1725f67964a846bd5130f4d4e6dfc7c6983c8339870b56e7941cfd44fa7
|
7
|
+
data.tar.gz: f1f8c38a884c4030965d030afbfe35969cdb60e17e4dae3212de15c159a9bde99b1debaaf6f80cb1ce564fdabdf8b827557e7025696a38cc8a8f328424bebc4c
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sidekiq-addons (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
celluloid (0.15.2)
|
10
|
+
timers (~> 1.1.0)
|
11
|
+
connection_pool (2.2.0)
|
12
|
+
coveralls (0.7.1)
|
13
|
+
multi_json (~> 1.3)
|
14
|
+
rest-client
|
15
|
+
simplecov (>= 0.7)
|
16
|
+
term-ansicolor
|
17
|
+
thor
|
18
|
+
diff-lcs (1.2.5)
|
19
|
+
docile (1.1.5)
|
20
|
+
domain_name (0.5.24)
|
21
|
+
unf (>= 0.0.5, < 1.0.0)
|
22
|
+
http-cookie (1.0.2)
|
23
|
+
domain_name (~> 0.5)
|
24
|
+
json (1.8.3)
|
25
|
+
mime-types (2.99)
|
26
|
+
multi_json (1.12.1)
|
27
|
+
netrc (0.10.3)
|
28
|
+
rake (10.5.0)
|
29
|
+
redis (3.2.1)
|
30
|
+
redis-namespace (1.5.2)
|
31
|
+
redis (~> 3.0, >= 3.0.4)
|
32
|
+
rest-client (1.8.0)
|
33
|
+
http-cookie (>= 1.0.2, < 2.0)
|
34
|
+
mime-types (>= 1.16, < 3.0)
|
35
|
+
netrc (~> 0.7)
|
36
|
+
rspec (3.2.0)
|
37
|
+
rspec-core (~> 3.2.0)
|
38
|
+
rspec-expectations (~> 3.2.0)
|
39
|
+
rspec-mocks (~> 3.2.0)
|
40
|
+
rspec-core (3.2.1)
|
41
|
+
rspec-support (~> 3.2.0)
|
42
|
+
rspec-expectations (3.2.0)
|
43
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
+
rspec-support (~> 3.2.0)
|
45
|
+
rspec-mocks (3.2.1)
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
+
rspec-support (~> 3.2.0)
|
48
|
+
rspec-support (3.2.2)
|
49
|
+
sidekiq (3.2.6)
|
50
|
+
celluloid (= 0.15.2)
|
51
|
+
connection_pool (>= 2.0.0)
|
52
|
+
json
|
53
|
+
redis (>= 3.0.6)
|
54
|
+
redis-namespace (>= 1.3.1)
|
55
|
+
simplecov (0.9.2)
|
56
|
+
docile (~> 1.1.0)
|
57
|
+
multi_json (~> 1.0)
|
58
|
+
simplecov-html (~> 0.9.0)
|
59
|
+
simplecov-html (0.9.0)
|
60
|
+
term-ansicolor (1.3.0)
|
61
|
+
tins (~> 1.0)
|
62
|
+
thor (0.19.1)
|
63
|
+
timers (1.1.0)
|
64
|
+
tins (1.3.2)
|
65
|
+
unf (0.1.4)
|
66
|
+
unf_ext
|
67
|
+
unf_ext (0.0.7.1)
|
68
|
+
|
69
|
+
PLATFORMS
|
70
|
+
ruby
|
71
|
+
|
72
|
+
DEPENDENCIES
|
73
|
+
bundler (~> 1.12)
|
74
|
+
coveralls
|
75
|
+
rake (~> 10.0)
|
76
|
+
rspec (~> 3.0)
|
77
|
+
sidekiq (~> 3.2)
|
78
|
+
sidekiq-addons!
|
79
|
+
|
80
|
+
BUNDLED WITH
|
81
|
+
1.12.5
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Viresh S
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
# Sidekiq::Addons
|
2
|
+
|
3
|
+
[](https://gitter.im/vireshas/sidekiq-addons?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
|
+
[](https://travis-ci.org/vireshas/sidekiq-addons)
|
5
|
+
[](https://coveralls.io/github/vireshas/sidekiq-addons?branch=master)
|
6
|
+
|
7
|
+
|
8
|
+
* Dynamically change job priority with in the same queue.
|
9
|
+
|
10
|
+
## Overview
|
11
|
+
|
12
|
+
Enqueue job with default priority
|
13
|
+
```ruby
|
14
|
+
MockWorker.perform_async(1)
|
15
|
+
```
|
16
|
+
Enqueue job with a priority
|
17
|
+
```ruby
|
18
|
+
job1 = MockWorker.perform_async(1, {:with_priority => 80})
|
19
|
+
job2 = MockWorker.perform_async(1, {:with_priority => 90})
|
20
|
+
job3 = MockWorker.perform_async(1, {:with_priority => 100})
|
21
|
+
job4 = MockWorker.perform_async(1, {:with_priority => 70})
|
22
|
+
```
|
23
|
+
When jobs are enqueued in this order, this gems makes sure that, job3 is the one that will be executed next(as it has the highest priority), this will be followed by job2, job1 and job4.
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
To always use default priority set ignore_priority => true at worker level
|
28
|
+
```ruby
|
29
|
+
class IgnoreWorker
|
30
|
+
include Sidekiq::Worker
|
31
|
+
sidekiq_options :ignore_priority => true
|
32
|
+
|
33
|
+
def perform(arg)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
Moves job to priority queue when with_priority or blocks value is greater than min_priority
|
39
|
+
```ruby
|
40
|
+
class MinPriorityWorker
|
41
|
+
include Sidekiq::Worker
|
42
|
+
sidekiq_options :min_priority => 50
|
43
|
+
|
44
|
+
def perform(arg)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
Use a block to assign priority dynamically
|
50
|
+
```ruby
|
51
|
+
class LazyEvalWorker
|
52
|
+
include Sidekiq::Worker
|
53
|
+
sidekiq_options :lazy_eval => Proc.new { |param|
|
54
|
+
param.first.to_i > 50
|
55
|
+
}
|
56
|
+
|
57
|
+
def perform(arg)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
```
|
61
|
+
Proc should either return a number or true to use priority scheduling
|
62
|
+
|
63
|
+
|
64
|
+
## Benefits
|
65
|
+
* Doesnt interrupt those jobs that are already getting executed, but, makes sure that the next job that will be executed will be a highest priority job.
|
66
|
+
* Minimal code changes: You just have to pass an extra param when you enqueue a job and jobs will be scheduled based on this param value.
|
67
|
+
* Minimal network transfer: loads a script in Redis and uses SHA to execute it. This greatly reduces network data transfer.
|
68
|
+
* Can talk to remote Redis: From your stack, you can pass a REDIS_URL in Sidekiq.options and it can talk to that Redis.
|
69
|
+
* When Sidekiq is interruppted, active jobs are re-enqueued with the existing priority. When Sidekiq boots-up, it will still pick the highest prortized job.
|
70
|
+
* Has automic ZPOP
|
71
|
+
|
72
|
+
## Coming up
|
73
|
+
* Uniqueness: removes duplicate jobs
|
74
|
+
* Cron(?)
|
75
|
+
* Stats
|
76
|
+
* Monitor
|
77
|
+
* Sidekiq-UI: integrate with sidekiq-UI
|
78
|
+
*
|
79
|
+
|
80
|
+
## Installation
|
81
|
+
|
82
|
+
Add this line to your application's Gemfile:
|
83
|
+
|
84
|
+
```ruby
|
85
|
+
gem 'sidekiq-addons'
|
86
|
+
```
|
87
|
+
|
88
|
+
And then execute:
|
89
|
+
|
90
|
+
$ bundle
|
91
|
+
|
92
|
+
Or install it yourself as:
|
93
|
+
|
94
|
+
$ gem install sidekiq-addons
|
95
|
+
|
96
|
+
|
97
|
+
## Development
|
98
|
+
|
99
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
100
|
+
|
101
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
102
|
+
|
103
|
+
## Contributing
|
104
|
+
|
105
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/vireshas/sidekiq-addons.
|
106
|
+
|
107
|
+
## License
|
108
|
+
|
109
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "sidekiq/addons"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
require "celluloid"
|
2
|
+
require "sidekiq/fetch"
|
3
|
+
|
4
|
+
module Sidekiq::Addons::Prioritize
|
5
|
+
class Deqr < Sidekiq::BasicFetch
|
6
|
+
|
7
|
+
attr_accessor :script_sha
|
8
|
+
|
9
|
+
def zpop(queue)
|
10
|
+
Sidekiq.redis do |con|
|
11
|
+
#TODO: for some reason pipeline and multi didnt work; revisit
|
12
|
+
if ( self.script_sha.nil? ) or !con.script(:exists, self.script_sha)
|
13
|
+
self.script_sha = con.script(:load, Sidekiq::Addons::Util::ZPOP)
|
14
|
+
end
|
15
|
+
|
16
|
+
con.evalsha(self.script_sha, [queue])
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def retrieve_work
|
21
|
+
priority_job = nil
|
22
|
+
@queues.uniq.each do |q|
|
23
|
+
q_name = Sidekiq::Addons::Util.priority_job_queue_name(q.split("queue:").last)
|
24
|
+
priority_job = zpop(q_name)
|
25
|
+
break if priority_job
|
26
|
+
end
|
27
|
+
|
28
|
+
if priority_job.nil?
|
29
|
+
return super
|
30
|
+
else
|
31
|
+
work = JSON.load(priority_job)
|
32
|
+
return UnitOfWork.new(work["queue"], priority_job)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.bulk_requeue(inprogress, options)
|
37
|
+
return if inprogress.empty?
|
38
|
+
|
39
|
+
jobs_unhandled = []
|
40
|
+
inprogress.each do |unit_work|
|
41
|
+
unit_work = JSON.load(unit_work)
|
42
|
+
priority = Sidekiq::Addons::Prioritize::Enqr.get_priority_from_msg(unit_work)
|
43
|
+
if ( priority > 0 )
|
44
|
+
Sidekiq.redis do |con|
|
45
|
+
Sidekiq::Addons::Prioritize::Enqr.enqueue_with_priority(con, unit_work["queue"], priority, unit_work)
|
46
|
+
end
|
47
|
+
else
|
48
|
+
jobs_unhandled << unit_work.to_json
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
Sidekiq.logger.info("Pushed #{inprogress.size - jobs_unhandled.size} jobs back to priority_queue in Redis")
|
53
|
+
|
54
|
+
super(jobs_unhandled, options)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
module Sidekiq::Addons::Prioritize
|
2
|
+
class Enqr
|
3
|
+
|
4
|
+
def compute_priority(queue, msg)
|
5
|
+
to_ignore_qs = Sidekiq.options[:ignore_priority] || []
|
6
|
+
min_priority = msg["min_priority"] || Sidekiq.options[:min_priority] || 0
|
7
|
+
ignore_priority = msg["ignore_priority"]
|
8
|
+
lazy_eval = msg["lazy_eval"]
|
9
|
+
|
10
|
+
priority = min_priority
|
11
|
+
if ignore_priority or (to_ignore_qs.include?(queue))
|
12
|
+
priority = 0
|
13
|
+
|
14
|
+
elsif lazy_eval
|
15
|
+
priority = lazy_eval.call(msg["args"])
|
16
|
+
unless priority.is_a?(Integer)
|
17
|
+
priority = priority ? (min_priority + 1) : (min_priority - 1)
|
18
|
+
end
|
19
|
+
msg.delete("lazy_eval")
|
20
|
+
else
|
21
|
+
priority = self.class.get_priority_from_msg(msg)
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
return (priority > min_priority) ? priority : nil
|
26
|
+
end
|
27
|
+
|
28
|
+
def call(worker_class, msg, queue, redis_pool)
|
29
|
+
priority = compute_priority(queue, msg)
|
30
|
+
if priority
|
31
|
+
msg["queue"] = "queue:#{queue}"
|
32
|
+
redis_pool.with {|con| self.class.enqueue_with_priority(con, queue, priority, msg) }
|
33
|
+
return false
|
34
|
+
else
|
35
|
+
yield
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
class << self
|
40
|
+
|
41
|
+
def get_priority_from_msg(msg)
|
42
|
+
priority = nil
|
43
|
+
|
44
|
+
if msg["args"].is_a?(Array)
|
45
|
+
msg["args"].each do |param|
|
46
|
+
if param.is_a?(Hash) and ( param.has_key?(:with_priority) \
|
47
|
+
or param.has_key?("with_priority") )
|
48
|
+
|
49
|
+
priority = param[:with_priority]
|
50
|
+
priority = param["with_priority"] unless priority
|
51
|
+
break
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
return priority.to_i
|
57
|
+
end
|
58
|
+
|
59
|
+
def enqueue_with_priority(con, queue, priority, msg)
|
60
|
+
q_name = Sidekiq::Addons::Util.priority_job_queue_name(queue)
|
61
|
+
return con.zadd(q_name, priority, msg.to_json)
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Sidekiq
|
2
|
+
module Addons
|
3
|
+
module Util
|
4
|
+
|
5
|
+
ZPOP = %q(
|
6
|
+
local resp = redis.call('zrevrange', KEYS[1], '0', '0')
|
7
|
+
if (resp[1] ~= nil) then
|
8
|
+
local val = resp[# resp]
|
9
|
+
redis.call('zrem', KEYS[1], val)
|
10
|
+
return val
|
11
|
+
else
|
12
|
+
return false
|
13
|
+
end
|
14
|
+
)
|
15
|
+
|
16
|
+
def self.priority_job_queue_name(q)
|
17
|
+
return "sidekiq-addons:pq:#{q}"
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "sidekiq"
|
2
|
+
require "sidekiq/addons/util"
|
3
|
+
require "sidekiq/addons/version"
|
4
|
+
require "sidekiq/addons/prioritize/enqr"
|
5
|
+
require "sidekiq/addons/prioritize/deqr"
|
6
|
+
|
7
|
+
module Sidekiq
|
8
|
+
module Addons
|
9
|
+
|
10
|
+
#set redis_url to default redis setttings if its not passed
|
11
|
+
unless Sidekiq.options[:redis_url]
|
12
|
+
Sidekiq.options[:redis_url] = {
|
13
|
+
url: 'redis://127.0.0.1:6379/0'
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
Sidekiq.configure_client do |config|
|
18
|
+
config.client_middleware do |chain|
|
19
|
+
chain.add Sidekiq::Addons::Prioritize::Enqr
|
20
|
+
config.redis = Sidekiq.options[:redis_url]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
Sidekiq.configure_server do |config|
|
25
|
+
Sidekiq.options[:fetch] = Sidekiq::Addons::Prioritize::Deqr
|
26
|
+
config.redis = Sidekiq.options[:redis_url]
|
27
|
+
config.client_middleware do |chain|
|
28
|
+
chain.add Sidekiq::Addons::Prioritize::Enqr
|
29
|
+
config.redis = Sidekiq.options[:redis_url]
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sidekiq/addons/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "sidekiq-addons"
|
8
|
+
spec.version = Sidekiq::Addons::VERSION
|
9
|
+
spec.authors = ["Viresh S"]
|
10
|
+
spec.email = ["asviresh@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{ Prioritize jobs in a queue, Uniqueness in jobs and Sidekiq based cron.}
|
13
|
+
spec.description = %q{ Prioritize jobs in a queue, Uniqueness in jobs and Sidekiq based cron.}
|
14
|
+
spec.homepage = "https://github.com/vireshas/sidekiq-addons"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|pkg)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_development_dependency "coveralls"
|
23
|
+
spec.add_development_dependency "sidekiq", "~> 3.2"
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sidekiq-addons
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Viresh S
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: coveralls
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sidekiq
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.2'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.12'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
description: " Prioritize jobs in a queue, Uniqueness in jobs and Sidekiq based cron."
|
84
|
+
email:
|
85
|
+
- asviresh@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
92
|
+
- Gemfile
|
93
|
+
- Gemfile.lock
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/console
|
98
|
+
- bin/setup
|
99
|
+
- lib/sidekiq/addons.rb
|
100
|
+
- lib/sidekiq/addons/prioritize/deqr.rb
|
101
|
+
- lib/sidekiq/addons/prioritize/enqr.rb
|
102
|
+
- lib/sidekiq/addons/util.rb
|
103
|
+
- lib/sidekiq/addons/version.rb
|
104
|
+
- sidekiq-addons.gemspec
|
105
|
+
homepage: https://github.com/vireshas/sidekiq-addons
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata: {}
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.4.3
|
126
|
+
signing_key:
|
127
|
+
specification_version: 4
|
128
|
+
summary: Prioritize jobs in a queue, Uniqueness in jobs and Sidekiq based cron.
|
129
|
+
test_files: []
|