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 +4 -4
- data/lib/toiler/actor/fetcher.rb +1 -5
- data/lib/toiler/actor/processor.rb +0 -5
- data/lib/toiler/version.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: 4842f8fb9a0d857b9863cdf7f5692e30c37731ce
|
4
|
+
data.tar.gz: b9d16f32933ef57649462493135c2681f8617461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81463fa46913eb23486c9dd3756e4973d6ac4f233bf2dfc79c1be938260051a3e6215a7f2e7067b980f963d34bad82d9ab7ffe65d2b3453f20c21228a2fe2149
|
7
|
+
data.tar.gz: 28e47b2d51b77185b45c795865faac509ff8860575b1a7aec27c299b0462c5475243c685d70cab6f940fdd7f7e9b3d5e3a35cc1639a7b93fa86b1bd0ec2a1b1c
|
data/lib/toiler/actor/fetcher.rb
CHANGED
@@ -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
|
data/lib/toiler/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|