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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a966f09e580879f83f7db608b238e127fc0f479
4
- data.tar.gz: 7a590ace7739f03079189013960465805cac264e
3
+ metadata.gz: 6bdc939a2ba35069ad8eadfdf42345f02f718f66
4
+ data.tar.gz: b835d3f1fdff386644467ed950f7b9e86672a738
5
5
  SHA512:
6
- metadata.gz: 6742b03c2677b2090f253de66361bb58faf72b0015b5a75a004386acb3ed40732aa379a8246f0e672f1bbb893d5b77388e01d9a1d1f6ef94497cefb60dcaa498
7
- data.tar.gz: d08c39fae8fd2e75c3fab9cb81c64b0fde4ba4dee59116806175adae163bf7298fd040d1dc3a0160d0ff33fdd3f1e506cba14b9b0264ecea1ba2039c1a9261dc
6
+ metadata.gz: 8fb082cf59f4b6d1db75db86b5f6cd292b388e83bd1a46eba32c96cbec38d2ab08f6cef9ca72c0ffd10c195add39afff2cf6ba51be0972b7b3aaa0d6181e2a00
7
+ data.tar.gz: 6af7e7f984da5625cb30617be8e78855c7e2c0856b985757d042afde147ac7cc70330aa242236102324c40d8017494a45e7c7e969339456df58231b31ce54277
data/.version CHANGED
@@ -1 +1 @@
1
- 1.0.2
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.2
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-09 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport