Kaynağa Gözat

Do not update state on inline timeout errors

Andrew Kane 9 yıl önce
ebeveyn
işleme
692e003b58
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/controllers/blazer/queries_controller.rb

+ 1 - 1
app/controllers/blazer/queries_controller.rb

@@ -60,7 +60,7 @@ module Blazer
 
         @rows, @error = Blazer.run_statement(@statement)
 
-        if @query
+        if @query && !@error.to_s.include?("canceling statement due to statement timeout")
           @query.blazer_checks.each do |check|
             check.update_state(@rows, @error)
           end