Browse Source

Default to 10 minutes if no timeout

Andrew Kane 7 years ago
parent
commit
9371197ce1
1 changed files with 3 additions and 3 deletions
  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