Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding more exceptions to be rescued when communication between serve…

…r and node has failed.
  • Loading branch information...
commit cf842f9b5bae590af9514f55a63166d9b2e4a49f 1 parent 521460d
@felipecvo felipecvo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cloud_crowd/models/node_record.rb
2  lib/cloud_crowd/models/node_record.rb
@@ -47,7 +47,7 @@ def send_work_unit(unit)
rescue RestClient::RequestFailed => e
raise e unless e.http_code == 503 && e.http_body == Node::OVERLOADED_MESSAGE
update_attribute(:busy, true) && false
- rescue RestClient::Exception, Errno::ECONNREFUSED, Timeout::Error
+ rescue RestClient::Exception, Errno::ECONNREFUSED, Timeout::Error, RestClient::RequestTimeout, Errno::ECONNRESET
# Couldn't post to node, assume it's gone away.
destroy && false
Please sign in to comment.
Something went wrong with that request. Please try again.