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 +1 -1
- data/lib/refinery/daemon.rb +5 -1
- data/refinery.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.12
|
data/lib/refinery/daemon.rb
CHANGED
@@ -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
|
-
|
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