toiler 0.3.1.beta2 → 0.3.1.beta3
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 +2 -2
- data/lib/toiler/actor/processor.rb +1 -1
- data/lib/toiler/cli.rb +2 -2
- data/lib/toiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa4e0ec381b8c6ca69fb76d30cb1ef2996cc0d65
|
4
|
+
data.tar.gz: b3abeaa58d5498673fcaf87ae9dec6ca100a3efe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca4cc212f26081c67b740ef3563cbd8e4fca5347ca23b27a90eabeab3ff8b3f60a6e13b09e779379a01c17aec7143e45cad40be0838df97c87888989a6e522fd
|
7
|
+
data.tar.gz: 2ce701cdb72fbbf4520ae9e82269292f69eae95e29c6f335ea3316d4f5fbd0a80050f60aa8e0648d670fe2b53f7a81bddaa7b276f94f8a43b4c1441b5ce8397f
|
data/lib/toiler/actor/fetcher.rb
CHANGED
@@ -10,7 +10,7 @@ module Toiler
|
|
10
10
|
FETCH_LIMIT = 10
|
11
11
|
|
12
12
|
attr_accessor :queue, :wait, :visibility_timeout, :free_processors,
|
13
|
-
:scheduled, :executing
|
13
|
+
:scheduled, :executing, :polling
|
14
14
|
|
15
15
|
def initialize(queue, client)
|
16
16
|
debug "Initializing Fetcher for queue #{queue}..."
|
@@ -34,7 +34,7 @@ module Toiler
|
|
34
34
|
method, *args = msg
|
35
35
|
send(method, *args)
|
36
36
|
rescue StandardError => e
|
37
|
-
error "Fetcher #{queue.name} raised exception #{e.class}"
|
37
|
+
error "Fetcher #{queue.name} raised exception #{e.class}: #{e.message}\n#{e.backtrace.join("\n")}"
|
38
38
|
ensure
|
39
39
|
executing.make_false
|
40
40
|
end
|
@@ -28,7 +28,7 @@ module Toiler
|
|
28
28
|
method, *args = msg
|
29
29
|
send(method, *args)
|
30
30
|
rescue StandardError => e
|
31
|
-
error "Processor #{queue} failed processing, reason: #{e.class}\n#{e.backtrace.join("\n")}"
|
31
|
+
error "Processor #{queue} failed processing, reason: #{e.class}: #{e.message}\n#{e.backtrace.join("\n")}"
|
32
32
|
end
|
33
33
|
|
34
34
|
def executing?
|
data/lib/toiler/cli.rb
CHANGED
@@ -90,8 +90,8 @@ module Toiler
|
|
90
90
|
processors.each do |processor|
|
91
91
|
thread = processor.thread
|
92
92
|
thread_id = thread.nil? ? nil : thread.object_id
|
93
|
-
message += "\n[processor:#{processor.name}] [executing:#{processor.executing?}] [thread:#{thread_id}]
|
94
|
-
message += thread.backtrace.join("\n\t") unless thread.nil?
|
93
|
+
message += "\n[processor:#{processor.name}] [executing:#{processor.executing?}] [thread:#{thread_id}]"
|
94
|
+
message += " Stack:\n" + thread.backtrace.join("\n\t") unless thread.nil?
|
95
95
|
end
|
96
96
|
Toiler.logger.info message
|
97
97
|
end
|
data/lib/toiler/version.rb
CHANGED