toiler 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 146f956b56837011b9575f8b8215863377aa2db3
4
- data.tar.gz: a717e54281db487fe88a7398f1a1e4b79818baa5
3
+ metadata.gz: 4842f8fb9a0d857b9863cdf7f5692e30c37731ce
4
+ data.tar.gz: b9d16f32933ef57649462493135c2681f8617461
5
5
  SHA512:
6
- metadata.gz: 68b8abe24cfc4217ed26c4e908cd5f84f7aad20fb35b6972b251e43f4a6598e194a6eb90d8962c9c20d9cad76ff7feee0ab86203538104a47ea259f6db48f6c1
7
- data.tar.gz: 819e860fcaf4ae1621c28744eca30e10c0e89691641a968e103e613c25be07354dc3cefae45a007fffd9636acb896a06b6bd340f93f35571db992b0df017e83e
6
+ metadata.gz: 81463fa46913eb23486c9dd3756e4973d6ac4f233bf2dfc79c1be938260051a3e6215a7f2e7067b980f963d34bad82d9ab7ffe65d2b3453f20c21228a2fe2149
7
+ data.tar.gz: 28e47b2d51b77185b45c795865faac509ff8860575b1a7aec27c299b0462c5475243c685d70cab6f940fdd7f7e9b3d5e3a35cc1639a7b93fa86b1bd0ec2a1b1c
@@ -61,11 +61,6 @@ module Toiler
61
61
  @batch
62
62
  end
63
63
 
64
- def processor_started
65
- debug "Fetcher #{queue.name} received processor started signal..."
66
- free_processors.decrement
67
- end
68
-
69
64
  def processor_finished
70
65
  debug "Fetcher #{queue.name} received processor finished signal..."
71
66
  free_processors.increment
@@ -111,6 +106,7 @@ module Toiler
111
106
  messages = [messages] if batch?
112
107
  messages.each do |m|
113
108
  processor_pool.tell [:process, visibility_timeout, m]
109
+ free_processors.decrement
114
110
  end
115
111
  debug "Fetcher #{queue.name} assigned #{messages.count} messages"
116
112
  tell :schedule_poll
@@ -67,7 +67,6 @@ module Toiler
67
67
  end
68
68
 
69
69
  def process_init
70
- processor_started
71
70
  @executing.make_true
72
71
  @thread = Thread.current
73
72
  debug "Processor #{queue} begins processing..."
@@ -87,10 +86,6 @@ module Toiler
87
86
  fetcher.tell :processor_finished
88
87
  end
89
88
 
90
- def processor_started
91
- fetcher.tell :processor_started
92
- end
93
-
94
89
  def visibility_extender(queue_visibility, sqs_msg, body)
95
90
  return unless auto_visibility_timeout?
96
91
  interval = [1,queue_visibility/3].max
@@ -1,4 +1,4 @@
1
1
  # Toiler Version
2
2
  module Toiler
3
- VERSION = '0.3.2'.freeze
3
+ VERSION = '0.3.3'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Schepens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler