multi_worker 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Gemfile +3 -1
- data/README.md +3 -1
- data/lib/multi_worker.rb +7 -6
- data/lib/multi_worker/adapters/delayed_job.rb +1 -1
- data/lib/multi_worker/adapters/sidekiq.rb +6 -6
- data/lib/multi_worker/adapters/sneakers.rb +1 -1
- data/lib/multi_worker/adapters/toro.rb +42 -0
- data/lib/multi_worker/tasks.rb +1 -1
- data/lib/multi_worker/version.rb +1 -1
- data/multi_worker.gemspec +7 -4
- data/spec/adapters/backburner_spec.rb +31 -31
- data/spec/adapters/delayed_job_spec.rb +31 -31
- data/spec/adapters/inline_spec.rb +17 -17
- data/spec/adapters/qu_spec.rb +28 -28
- data/spec/adapters/que_spec.rb +43 -43
- data/spec/adapters/queue_classic_spec.rb +40 -40
- data/spec/adapters/resque_spec.rb +73 -73
- data/spec/adapters/sidekiq_spec.rb +90 -90
- data/spec/adapters/sneakers_spec.rb +35 -35
- data/spec/adapters/sucker_punch_spec.rb +2 -2
- data/spec/adapters/threaded_in_memory_queue_spec.rb +24 -24
- data/spec/adapters/toro_spec.rb +64 -0
- data/spec/adapters/torquebox_backgroundable_spec.rb +30 -30
- data/spec/configuration_spec.rb +60 -58
- data/spec/shared/worker_spec.rb +17 -17
- data/spec/spec_helper.rb +1 -1
- data/spec/test_workers.rb +6 -6
- metadata +69 -53
@@ -12,13 +12,13 @@ end
|
|
12
12
|
describe MultiWorker do
|
13
13
|
context "when Sucker Punch is loaded" do
|
14
14
|
it "defaults to the :sucker_punch adapter" do
|
15
|
-
MultiWorker.default_adapter.
|
15
|
+
expect(MultiWorker.default_adapter).to eq(:sucker_punch)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
context "when using the :sucker_punch adapter" do
|
20
20
|
before(:each) do
|
21
|
-
TestWorker.
|
21
|
+
expect_any_instance_of(TestWorker).to receive(:perform).once.with("foo")
|
22
22
|
end
|
23
23
|
|
24
24
|
it "::perform_async uses Sucker Punch" do
|
@@ -1,25 +1,25 @@
|
|
1
|
-
require 'threaded_in_memory_queue'
|
2
|
-
ThreadedInMemoryQueue.inline = true
|
3
|
-
|
4
|
-
require 'test_workers'
|
5
|
-
|
6
|
-
describe TestWorker do
|
7
|
-
it_behaves_like "a worker"
|
8
|
-
end
|
9
|
-
|
10
|
-
describe MultiWorker do
|
11
|
-
context "when ThreadedInMemoryQueue is loaded" do
|
12
|
-
it "defaults to the :threaded_in_memory_queue adapter" do
|
13
|
-
MultiWorker.default_adapter.
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
context "when using the :threaded_in_memory_queue adapter" do
|
18
|
-
it "performs the work using ThreadedInMemoryQueue" do
|
19
|
-
expect(TestWorker).to receive(:perform).exactly(3).times.with("foo")
|
20
|
-
TestWorker.perform_async("foo")
|
21
|
-
MultiWorker.enqueue(TestWorker, "foo")
|
22
|
-
TestWorker.perform("foo")
|
23
|
-
end
|
24
|
-
end
|
1
|
+
require 'threaded_in_memory_queue'
|
2
|
+
ThreadedInMemoryQueue.inline = true
|
3
|
+
|
4
|
+
require 'test_workers'
|
5
|
+
|
6
|
+
describe TestWorker do
|
7
|
+
it_behaves_like "a worker"
|
8
|
+
end
|
9
|
+
|
10
|
+
describe MultiWorker do
|
11
|
+
context "when ThreadedInMemoryQueue is loaded" do
|
12
|
+
it "defaults to the :threaded_in_memory_queue adapter" do
|
13
|
+
expect(MultiWorker.default_adapter).to eq(:threaded_in_memory_queue)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
context "when using the :threaded_in_memory_queue adapter" do
|
18
|
+
it "performs the work using ThreadedInMemoryQueue" do
|
19
|
+
expect(TestWorker).to receive(:perform).exactly(3).times.with("foo")
|
20
|
+
TestWorker.perform_async("foo")
|
21
|
+
MultiWorker.enqueue(TestWorker, "foo")
|
22
|
+
TestWorker.perform("foo")
|
23
|
+
end
|
24
|
+
end
|
25
25
|
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
exit if jruby?
|
2
|
+
|
3
|
+
ENV["DATABASE_URL"] ||= "postgres:///queue_classic_test"
|
4
|
+
require 'toro'
|
5
|
+
|
6
|
+
require 'test_workers'
|
7
|
+
|
8
|
+
describe TestWorker do
|
9
|
+
it_behaves_like "a worker"
|
10
|
+
end
|
11
|
+
|
12
|
+
describe MultiWorker do
|
13
|
+
context "when Toro is loaded" do
|
14
|
+
it "defaults to the :toro adapter" do
|
15
|
+
expect(MultiWorker.default_adapter).to eq(:toro)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context "when using the :toro adapter" do
|
20
|
+
it "performs the work using Toro" do
|
21
|
+
expect(Toro::Client).to receive(:create_job).exactly(2).times.with({class_name:"TestWorker", name:nil, args:["foo"], queue::default})
|
22
|
+
TestWorker.perform_async("foo")
|
23
|
+
MultiWorker.enqueue(TestWorker, "foo")
|
24
|
+
end
|
25
|
+
|
26
|
+
it "exposes the Toro rake task" do
|
27
|
+
expect(MultiWorker.adapter.rake_task.name).to eq("toro")
|
28
|
+
end
|
29
|
+
|
30
|
+
context "with advanced options" do
|
31
|
+
context "when configuring the :retry option" do
|
32
|
+
context "with a hash" do
|
33
|
+
it "configures retry interval" do
|
34
|
+
retry_worker = Class.new do
|
35
|
+
worker retry: {delay: 2.minutes}
|
36
|
+
end
|
37
|
+
|
38
|
+
expect(retry_worker.toro_options[:retry_interval]).to eq(2.minutes)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
context "with an ActiveSupport::Duration" do
|
43
|
+
it "configures retry interval" do
|
44
|
+
retry_worker = Class.new do
|
45
|
+
worker retry: 15.seconds
|
46
|
+
end
|
47
|
+
|
48
|
+
expect(retry_worker.toro_options[:retry_interval]).to eq(15.seconds)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
context "with a number" do
|
53
|
+
it "configures retry interval" do
|
54
|
+
retry_worker = Class.new do
|
55
|
+
worker retry: 20
|
56
|
+
end
|
57
|
+
|
58
|
+
expect(retry_worker.toro_options[:retry_interval]).to eq(20)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -1,31 +1,31 @@
|
|
1
|
-
exit unless jruby?
|
2
|
-
|
3
|
-
require 'torquebox/messaging'
|
4
|
-
require 'torquebox/messaging/backgroundable'
|
5
|
-
require 'torquebox/core'
|
6
|
-
#java_import 'org.torquebox.core.util.StringUtils'
|
7
|
-
|
8
|
-
require 'test_workers'
|
9
|
-
|
10
|
-
describe TestWorker do
|
11
|
-
it_behaves_like "a worker"
|
12
|
-
|
13
|
-
it { should be_a ::TorqueBox::Messaging::Backgroundable}
|
14
|
-
end
|
15
|
-
|
16
|
-
describe MultiWorker do
|
17
|
-
context "when TorqueBox::Messaging::Backgroundable is loaded" do
|
18
|
-
it "defaults to the :sidekiq adapter" do
|
19
|
-
MultiWorker.default_adapter.
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
context "when using the :torquebox_backgroundable adapter" do
|
24
|
-
it "puts a message on the queue" do
|
25
|
-
#@queue.should_receive(:publish).exactly(2).times
|
26
|
-
TorqueBox::Messaging::Backgroundable::Util.
|
27
|
-
TestWorker.perform_async("foo")
|
28
|
-
MultiWorker.enqueue(TestWorker, "foo")
|
29
|
-
end
|
30
|
-
end
|
1
|
+
exit unless jruby?
|
2
|
+
|
3
|
+
require 'torquebox/messaging'
|
4
|
+
require 'torquebox/messaging/backgroundable'
|
5
|
+
require 'torquebox/core'
|
6
|
+
#java_import 'org.torquebox.core.util.StringUtils'
|
7
|
+
|
8
|
+
require 'test_workers'
|
9
|
+
|
10
|
+
describe TestWorker do
|
11
|
+
it_behaves_like "a worker"
|
12
|
+
|
13
|
+
it { should be_a ::TorqueBox::Messaging::Backgroundable}
|
14
|
+
end
|
15
|
+
|
16
|
+
describe MultiWorker do
|
17
|
+
context "when TorqueBox::Messaging::Backgroundable is loaded" do
|
18
|
+
it "defaults to the :sidekiq adapter" do
|
19
|
+
expect(MultiWorker.default_adapter).to eq(:torquebox_backgroundable)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
context "when using the :torquebox_backgroundable adapter" do
|
24
|
+
it "puts a message on the queue" do
|
25
|
+
#@queue.should_receive(:publish).exactly(2).times
|
26
|
+
expect(TorqueBox::Messaging::Backgroundable::Util).to receive(:publish_message).exactly(2).times
|
27
|
+
TestWorker.perform_async("foo")
|
28
|
+
MultiWorker.enqueue(TestWorker, "foo")
|
29
|
+
end
|
30
|
+
end
|
31
31
|
end
|
data/spec/configuration_spec.rb
CHANGED
@@ -1,59 +1,61 @@
|
|
1
|
-
describe MultiWorker do
|
2
|
-
context 'configuration' do
|
3
|
-
it 'yields itself in a configuration block' do
|
4
|
-
MultiWorker.configure do
|
5
|
-
self
|
6
|
-
end
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
MultiWorker.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
MultiWorker.default_options[:
|
27
|
-
MultiWorker.default_options[:
|
28
|
-
MultiWorker.default_options[:
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
MultiWorker.default_options[:
|
39
|
-
MultiWorker.default_options[:
|
40
|
-
|
41
|
-
MultiWorker.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
1
|
+
describe MultiWorker do
|
2
|
+
context 'configuration' do
|
3
|
+
it 'yields itself in a configuration block' do
|
4
|
+
configuration = MultiWorker.configure do
|
5
|
+
self
|
6
|
+
end
|
7
|
+
|
8
|
+
expect(configuration).to eq MultiWorker
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'allows the default adapter to be set' do
|
12
|
+
MultiWorker.configure do
|
13
|
+
default_adapter :foo
|
14
|
+
end
|
15
|
+
|
16
|
+
expect(MultiWorker.default_adapter).to eq(:foo)
|
17
|
+
|
18
|
+
MultiWorker.instance_variable_set(:@default_adapter, nil)
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'picks a default adapter automatically' do
|
22
|
+
expect(MultiWorker.default_adapter).not_to be_nil
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'provides default options' do
|
26
|
+
expect(MultiWorker.default_options[:queue]).to eq(:default)
|
27
|
+
expect(MultiWorker.default_options[:retry]).to eq(false)
|
28
|
+
expect(MultiWorker.default_options[:lock]).to eq(false)
|
29
|
+
expect(MultiWorker.default_options[:unique]).to eq(false)
|
30
|
+
expect(MultiWorker.default_options[:status]).to eq(false)
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'allows default options to be customized' do
|
34
|
+
MultiWorker.configure do
|
35
|
+
default_options retry: true, unique: true
|
36
|
+
end
|
37
|
+
|
38
|
+
expect(MultiWorker.default_options[:retry]).to eq(true)
|
39
|
+
expect(MultiWorker.default_options[:lock]).to eq(false)
|
40
|
+
expect(MultiWorker.default_options[:unique]).to eq(true)
|
41
|
+
expect(MultiWorker.default_options[:status]).to eq(false)
|
42
|
+
|
43
|
+
MultiWorker.instance_variable_set(:@default_options, nil)
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'allows default options to be overriden on the worker' do
|
47
|
+
MultiWorker.configure do
|
48
|
+
default_adapter :foo
|
49
|
+
end
|
50
|
+
|
51
|
+
require 'multi_worker/adapters/inline'
|
52
|
+
expect(MultiWorker::Adapters::Inline).to receive(:configure) do |klass, opts|
|
53
|
+
expect(opts[:queue]).to eq(:background)
|
54
|
+
end
|
55
|
+
|
56
|
+
custom_worker = Class.new do
|
57
|
+
worker adapter: :inline, queue: :background
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
59
61
|
end
|
data/spec/shared/worker_spec.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
shared_examples_for "a worker" do
|
2
|
-
context "class" do
|
3
|
-
subject { described_class }
|
4
|
-
|
5
|
-
it { should respond_to(:perform) }
|
6
|
-
it { should respond_to(:perform_async) }
|
7
|
-
|
8
|
-
it "delegates ::perform to #perform" do
|
9
|
-
TestWorker.
|
10
|
-
TestWorker.perform("foo")
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
context "instance" do
|
15
|
-
it { should respond_to(:perform) }
|
16
|
-
it { should respond_to(:perform_async) }
|
17
|
-
end
|
1
|
+
shared_examples_for "a worker" do
|
2
|
+
context "class" do
|
3
|
+
subject { described_class }
|
4
|
+
|
5
|
+
it { should respond_to(:perform) }
|
6
|
+
it { should respond_to(:perform_async) }
|
7
|
+
|
8
|
+
it "delegates ::perform to #perform" do
|
9
|
+
expect_any_instance_of(TestWorker).to receive(:perform).once.with("foo")
|
10
|
+
TestWorker.perform("foo")
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
context "instance" do
|
15
|
+
it { should respond_to(:perform) }
|
16
|
+
it { should respond_to(:perform_async) }
|
17
|
+
end
|
18
18
|
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/test_workers.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
class TestWorker
|
2
|
-
worker
|
3
|
-
|
4
|
-
def perform(arg)
|
5
|
-
arg
|
6
|
-
end
|
1
|
+
class TestWorker
|
2
|
+
worker
|
3
|
+
|
4
|
+
def perform(arg)
|
5
|
+
arg
|
6
|
+
end
|
7
7
|
end
|
metadata
CHANGED
@@ -1,237 +1,237 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Butler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: resque
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: resque-retry
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: resque-status
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: resque-loner
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: resque-lock-timeout
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: resque-delay
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: sidekiq
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: sidekiq-lock
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: sidekiq_status
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: sidekiq-unique-jobs
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: sidekiq-delay
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: delayed_job
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: delayed_job_active_record
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- -
|
227
|
+
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
- !ruby/object:Gem::Dependency
|
@@ -252,84 +252,98 @@ dependencies:
|
|
252
252
|
name: queue_classic
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
|
-
- -
|
255
|
+
- - ">="
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
|
-
- -
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: toro
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
263
277
|
- !ruby/object:Gem::Version
|
264
278
|
version: '0'
|
265
279
|
- !ruby/object:Gem::Dependency
|
266
280
|
name: que
|
267
281
|
requirement: !ruby/object:Gem::Requirement
|
268
282
|
requirements:
|
269
|
-
- -
|
283
|
+
- - ">="
|
270
284
|
- !ruby/object:Gem::Version
|
271
285
|
version: '0'
|
272
286
|
type: :development
|
273
287
|
prerelease: false
|
274
288
|
version_requirements: !ruby/object:Gem::Requirement
|
275
289
|
requirements:
|
276
|
-
- -
|
290
|
+
- - ">="
|
277
291
|
- !ruby/object:Gem::Version
|
278
292
|
version: '0'
|
279
293
|
- !ruby/object:Gem::Dependency
|
280
294
|
name: sneakers
|
281
295
|
requirement: !ruby/object:Gem::Requirement
|
282
296
|
requirements:
|
283
|
-
- -
|
297
|
+
- - ">="
|
284
298
|
- !ruby/object:Gem::Version
|
285
299
|
version: '0'
|
286
300
|
type: :development
|
287
301
|
prerelease: false
|
288
302
|
version_requirements: !ruby/object:Gem::Requirement
|
289
303
|
requirements:
|
290
|
-
- -
|
304
|
+
- - ">="
|
291
305
|
- !ruby/object:Gem::Version
|
292
306
|
version: '0'
|
293
307
|
- !ruby/object:Gem::Dependency
|
294
308
|
name: threaded_in_memory_queue
|
295
309
|
requirement: !ruby/object:Gem::Requirement
|
296
310
|
requirements:
|
297
|
-
- -
|
311
|
+
- - ">="
|
298
312
|
- !ruby/object:Gem::Version
|
299
313
|
version: '0'
|
300
314
|
type: :development
|
301
315
|
prerelease: false
|
302
316
|
version_requirements: !ruby/object:Gem::Requirement
|
303
317
|
requirements:
|
304
|
-
- -
|
318
|
+
- - ">="
|
305
319
|
- !ruby/object:Gem::Version
|
306
320
|
version: '0'
|
307
321
|
- !ruby/object:Gem::Dependency
|
308
322
|
name: sucker_punch
|
309
323
|
requirement: !ruby/object:Gem::Requirement
|
310
324
|
requirements:
|
311
|
-
- -
|
325
|
+
- - ">="
|
312
326
|
- !ruby/object:Gem::Version
|
313
327
|
version: '0'
|
314
328
|
type: :development
|
315
329
|
prerelease: false
|
316
330
|
version_requirements: !ruby/object:Gem::Requirement
|
317
331
|
requirements:
|
318
|
-
- -
|
332
|
+
- - ">="
|
319
333
|
- !ruby/object:Gem::Version
|
320
334
|
version: '0'
|
321
335
|
- !ruby/object:Gem::Dependency
|
322
336
|
name: backburner
|
323
337
|
requirement: !ruby/object:Gem::Requirement
|
324
338
|
requirements:
|
325
|
-
- -
|
339
|
+
- - ">="
|
326
340
|
- !ruby/object:Gem::Version
|
327
341
|
version: '0'
|
328
342
|
type: :development
|
329
343
|
prerelease: false
|
330
344
|
version_requirements: !ruby/object:Gem::Requirement
|
331
345
|
requirements:
|
332
|
-
- -
|
346
|
+
- - ">="
|
333
347
|
- !ruby/object:Gem::Version
|
334
348
|
version: '0'
|
335
349
|
description: Provides a common interface to Ruby worker/queue libraries.
|
@@ -339,9 +353,9 @@ executables: []
|
|
339
353
|
extensions: []
|
340
354
|
extra_rdoc_files: []
|
341
355
|
files:
|
342
|
-
- .gitignore
|
343
|
-
- .rspec
|
344
|
-
- .travis.yml
|
356
|
+
- ".gitignore"
|
357
|
+
- ".rspec"
|
358
|
+
- ".travis.yml"
|
345
359
|
- Gemfile
|
346
360
|
- LICENSE.txt
|
347
361
|
- README.md
|
@@ -358,6 +372,7 @@ files:
|
|
358
372
|
- lib/multi_worker/adapters/sneakers.rb
|
359
373
|
- lib/multi_worker/adapters/sucker_punch.rb
|
360
374
|
- lib/multi_worker/adapters/threaded_in_memory_queue.rb
|
375
|
+
- lib/multi_worker/adapters/toro.rb
|
361
376
|
- lib/multi_worker/adapters/torquebox_backgroundable.rb
|
362
377
|
- lib/multi_worker/interface.rb
|
363
378
|
- lib/multi_worker/tasks.rb
|
@@ -374,6 +389,7 @@ files:
|
|
374
389
|
- spec/adapters/sneakers_spec.rb
|
375
390
|
- spec/adapters/sucker_punch_spec.rb
|
376
391
|
- spec/adapters/threaded_in_memory_queue_spec.rb
|
392
|
+
- spec/adapters/toro_spec.rb
|
377
393
|
- spec/adapters/torquebox_backgroundable_spec.rb
|
378
394
|
- spec/configuration_spec.rb
|
379
395
|
- spec/delayed/backend/test.rb
|
@@ -391,17 +407,17 @@ require_paths:
|
|
391
407
|
- lib
|
392
408
|
required_ruby_version: !ruby/object:Gem::Requirement
|
393
409
|
requirements:
|
394
|
-
- -
|
410
|
+
- - ">="
|
395
411
|
- !ruby/object:Gem::Version
|
396
412
|
version: '0'
|
397
413
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
398
414
|
requirements:
|
399
|
-
- -
|
415
|
+
- - ">="
|
400
416
|
- !ruby/object:Gem::Version
|
401
417
|
version: '0'
|
402
418
|
requirements: []
|
403
419
|
rubyforge_project:
|
404
|
-
rubygems_version: 2.
|
420
|
+
rubygems_version: 2.2.2
|
405
421
|
signing_key:
|
406
422
|
specification_version: 4
|
407
423
|
summary: Provides a common interface to Ruby worker/queue libraries.
|
@@ -417,6 +433,7 @@ test_files:
|
|
417
433
|
- spec/adapters/sneakers_spec.rb
|
418
434
|
- spec/adapters/sucker_punch_spec.rb
|
419
435
|
- spec/adapters/threaded_in_memory_queue_spec.rb
|
436
|
+
- spec/adapters/toro_spec.rb
|
420
437
|
- spec/adapters/torquebox_backgroundable_spec.rb
|
421
438
|
- spec/configuration_spec.rb
|
422
439
|
- spec/delayed/backend/test.rb
|
@@ -424,4 +441,3 @@ test_files:
|
|
424
441
|
- spec/shared/worker_spec.rb
|
425
442
|
- spec/spec_helper.rb
|
426
443
|
- spec/test_workers.rb
|
427
|
-
has_rdoc:
|