refinery 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.11
1
+ 0.9.12
@@ -90,6 +90,7 @@ module Refinery #:nodoc:
90
90
  'host_info' => host_info,
91
91
  'original' => message.body
92
92
  }
93
+ logger.error "Sending 'error' message to #{error_queue.name}: #{e.message}"
93
94
  error_queue.send_message(encode_message(error_message))
94
95
  message.delete()
95
96
  end
@@ -97,7 +98,10 @@ module Refinery #:nodoc:
97
98
  sleep(settings['sleep'] || 5)
98
99
  rescue Exception => e
99
100
  logger.error "An error occurred while receiving from the waiting queue: #{e.message}"
100
- sleep(30) # try to let things recover a bit
101
+ # delay to try to get past the issue with the queue
102
+ sleep(30)
103
+ # assign a new queue instance
104
+ @waiting_queue = queue(waiting_queue.name)
101
105
  end
102
106
  end
103
107
  logger.debug "Exiting daemon thread"
data/refinery.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinery}
5
- s.version = "0.9.11"
5
+ s.version = "0.9.12"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Anthony Eden"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Eden