mirror of
https://github.com/czhu12/canine.git
synced 2025-12-17 00:44:33 -06:00
catch more errors
This commit is contained in:
@@ -15,7 +15,7 @@ class Scheduled::CheckHealthJob < ApplicationJob
|
||||
else
|
||||
service.status = :unhealthy
|
||||
end
|
||||
rescue Net::OpenTimeout, Net::ReadTimeout, Errno::ECONNREFUSED, SocketError, HTTParty::Error => e
|
||||
rescue Net::OpenTimeout, Net::ReadTimeout, Errno::ECONNREFUSED, SocketError, HTTParty::Error, OpenSSL::SSL::SSLError => e
|
||||
Rails.logger.warn("Health check failed for #{service.name}: #{e.class} - #{e.message}")
|
||||
service.status = :unhealthy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user