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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0e6b52aa706f58b4336de5f61a5ee58d1e8fcdd
4
- data.tar.gz: 25944e01b7f1af554717b8103d12ce6e0488ed4d
3
+ metadata.gz: fa4e0ec381b8c6ca69fb76d30cb1ef2996cc0d65
4
+ data.tar.gz: b3abeaa58d5498673fcaf87ae9dec6ca100a3efe
5
5
  SHA512:
6
- metadata.gz: b7aae208fda6e769b5635ced33b91137968cd2335cb78bdd6bb8f3b04918fde15ef2a8125e56c052da4952ef811460e1c8cd3b53794b19b62466a7880b3330ef
7
- data.tar.gz: c4304432d894ade81a134e154984a7383f3ed0dbfc172e7e4f92d29d43cf9da61baa37486ed03ebb50b2885f63af2b8114709309d6a558333062a77317ee01e8
6
+ metadata.gz: ca4cc212f26081c67b740ef3563cbd8e4fca5347ca23b27a90eabeab3ff8b3f60a6e13b09e779379a01c17aec7143e45cad40be0838df97c87888989a6e522fd
7
+ data.tar.gz: 2ce701cdb72fbbf4520ae9e82269292f69eae95e29c6f335ea3316d4f5fbd0a80050f60aa8e0648d670fe2b53f7a81bddaa7b276f94f8a43b4c1441b5ce8397f
@@ -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}] Stack:"
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
@@ -1,4 +1,4 @@
1
1
  # Toiler Version
2
2
  module Toiler
3
- VERSION = '0.3.1.beta2'.freeze
3
+ VERSION = '0.3.1.beta3'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.beta2
4
+ version: 0.3.1.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Schepens