hivent 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.version +1 -1
- data/lib/hivent/cli/start_option_parser.rb +0 -4
- data/lib/hivent/redis/consumer.rb +1 -2
- 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: 6bdc939a2ba35069ad8eadfdf42345f02f718f66
|
4
|
+
data.tar.gz: b835d3f1fdff386644467ed950f7b9e86672a738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fb082cf59f4b6d1db75db86b5f6cd292b388e83bd1a46eba32c96cbec38d2ab08f6cef9ca72c0ffd10c195add39afff2cf6ba51be0972b7b3aaa0d6181e2a00
|
7
|
+
data.tar.gz: 6af7e7f984da5625cb30617be8e78855c7e2c0856b985757d042afde147ac7cc70330aa242236102324c40d8017494a45e7c7e969339456df58231b31ce54277
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
@@ -20,10 +20,6 @@ module Hivent
|
|
20
20
|
o.on('-r', '--require PATH', 'File to require to bootstrap consumers') do |arg|
|
21
21
|
@options[:require] = arg
|
22
22
|
end
|
23
|
-
|
24
|
-
o.on('-p', '--pid-dir DIR', 'Location of worker pid files') do |arg|
|
25
|
-
@options[:pid_dir] = arg
|
26
|
-
end
|
27
23
|
end
|
28
24
|
|
29
25
|
parser.parse(@argv)
|
@@ -36,6 +36,7 @@ module Hivent
|
|
36
36
|
to_process = items
|
37
37
|
|
38
38
|
to_process.each do |(queue, item)|
|
39
|
+
@redis.rpop(queue)
|
39
40
|
payload = nil
|
40
41
|
begin
|
41
42
|
payload = JSON.parse(item).with_indifferent_access
|
@@ -48,8 +49,6 @@ module Hivent
|
|
48
49
|
|
49
50
|
@life_cycle_event_handler.event_processing_failed(e, payload, item, dead_letter_queue_name(queue))
|
50
51
|
end
|
51
|
-
|
52
|
-
@redis.rpop(queue)
|
53
52
|
end
|
54
53
|
|
55
54
|
Kernel.sleep(SLEEP_TIME.to_f / 1000) if to_process.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hivent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Abrantes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|