disquo 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/disquo.gemspec +1 -1
- data/lib/disquo/cli.rb +1 -3
- data/lib/disquo/worker.rb +1 -1
- data/spec/active_job/queue_adapters/disquo_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3509b03272fb2cddddbad48ad4b3015f8725b11d
|
4
|
+
data.tar.gz: 358107fc63bf97811090883bb68c6ada3c9c6957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec226472c802d747aa318a26618456dfa51873a3c89c64bc68430ab0d535520e7d793f8c688aebe677d1ef78f2a7dfe0bacd9be56c54268d9929019e5ccab62
|
7
|
+
data.tar.gz: 3e9a90c8d1438803375fbf8da8bc054760c3df3ab2efa09442a9d7bb4f96715f0ff379c0f54fb4ae1a89c40d6ee69aeeed891f57d97a759d1422ecd820500e8a
|
data/Gemfile.lock
CHANGED
data/disquo.gemspec
CHANGED
data/lib/disquo/cli.rb
CHANGED
@@ -17,7 +17,6 @@ module Disquo
|
|
17
17
|
pool_timeout: 1,
|
18
18
|
logfile: nil, # STDOUT
|
19
19
|
wait_time: 1,
|
20
|
-
wait_count: 100,
|
21
20
|
}
|
22
21
|
|
23
22
|
attr_reader :opts
|
@@ -68,8 +67,7 @@ module Disquo
|
|
68
67
|
@worker = Disquo::Worker.new disque,
|
69
68
|
queues: opts[:queues],
|
70
69
|
concurrency: opts[:concurrency],
|
71
|
-
wait_time: opts[:wait_time]
|
72
|
-
wait_count: opts[:wait_count]
|
70
|
+
wait_time: opts[:wait_time]
|
73
71
|
@worker.run
|
74
72
|
@worker.wait
|
75
73
|
end
|
data/lib/disquo/worker.rb
CHANGED
@@ -3,7 +3,7 @@ require 'concurrent/executor/fixed_thread_pool'
|
|
3
3
|
require 'concurrent/atomic/atomic_fixnum'
|
4
4
|
|
5
5
|
class Disquo::Worker
|
6
|
-
attr_reader :disque, :queues, :wait_time
|
6
|
+
attr_reader :disque, :queues, :wait_time
|
7
7
|
|
8
8
|
# Init a new worker instance
|
9
9
|
# @param [ConnectionPool] disque client connection pool
|
@@ -17,7 +17,7 @@ RSpec.describe ActiveJob::QueueAdapters::DisquoAdapter do
|
|
17
17
|
"state" => "active",
|
18
18
|
)
|
19
19
|
expect(job_data["delay"]).to be_within(5).of(60)
|
20
|
-
expect(job_data["retry"]).to be_within(5).of(
|
20
|
+
expect(job_data["retry"]).to be_within(5).of(300)
|
21
21
|
expect(job_data["ttl"]).to be_within(5).of(3600)
|
22
22
|
expect(Disquo.load_job(job_data["body"])).to eq([
|
23
23
|
"ActiveJob::QueueAdapters::DisquoAdapter::JobWrapper",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disquo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: disque
|