gitlab-org--gitlab-foss/config/initializers/health_check.rb
DJ Mountney 4cfb1af0b7 Set the health_check mailer full checks to be the same as the standard checks
There was nothing additional in the full checks that we want to run (email, custom)
2016-06-24 08:47:08 -07:00

17 lines
571 B
Ruby

# Email forcibly included in the standard checks, but the email health check
# doesn't support the full range of SMTP options, which can result in failures
# for valid SMTP configurations.
# Overwrite the HealthCheck's detection of whether email is configured
# in order to avoid the email check during standard checks
module HealthCheck
class Utils
def self.mailer_configured?
false
end
end
end
HealthCheck.setup do |config|
config.standard_checks = ['database', 'migrations', 'cache']
config.full_checks = ['database', 'migrations', 'cache']
end