Explorar o código

Do not update state on inline timeout errors

Andrew Kane %!s(int64=9) %!d(string=hai) anos
pai
achega
692e003b58
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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