Explorar el Código

Default to 10 minutes if no timeout

Andrew Kane hace 7 años
padre
commit
9371197ce1
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      app/controllers/blazer/queries_controller.rb

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

@@ -93,9 +93,9 @@ module Blazer
           @cached_at = nil
           params[:data_source] = nil
           render_run
-        elsif Time.now > Time.at(@timestamp + (@data_source.timeout || 120).to_i)
-          # timed out
-          @error = Blazer::TIMEOUT_MESSAGE
+        elsif Time.now > Time.at(@timestamp + (@data_source.timeout || 600).to_i + 5)
+          # query lost
+          @error = "We lost your query :("
           @rows = []
           @columns = []
           render_run