Browse Source

Disable checks after 5 consecutive errors

Andrew Kane 8 years ago
parent
commit
6adb0f7ffe
2 changed files with 2 additions and 2 deletions
  1. 1 1
      CHANGELOG.md
  2. 1 1
      app/models/blazer/check.rb

+ 1 - 1
CHANGELOG.md

@@ -1,7 +1,7 @@
 ## 1.4.0 [unreleased]
 
 - Added `slow` cache mode
-- Disable checks after 3 consecutive errors
+- Disable checks after 5 consecutive errors
 - Fixed `BLAZER_DATABASE_URL required` error
 - Fixed issue with duplicate column names
 

+ 1 - 1
app/models/blazer/check.rb

@@ -28,7 +28,7 @@ module Blazer
       if respond_to?(:consecutive_errors=)
         if state == "timed out" || state == "error"
           self.consecutive_errors += 1
-          self.state = "disabled" if consecutive_errors >= 3
+          self.state = "disabled" if consecutive_errors >= 5
         else
           self.consecutive_errors = 0
         end