Skip to content
Snippets Groups Projects
Commit b553b0b5 authored by Cam Saül's avatar Cam Saül
Browse files

Bump query timeout for BigQuery a bit :scream_cat:

parent d0061b61
No related branches found
No related tags found
No related merge requests found
......@@ -182,10 +182,11 @@
"TIMESTAMP" parse-timestamp-str})
(def ^:private ^:const query-timeout-error-message "Query timed out.")
(def ^:private ^:const query-default-timeout-seconds 30)
(defn- post-process-native
([^QueryResponse response]
(post-process-native response 20))
(post-process-native response query-default-timeout-seconds))
([^QueryResponse response, ^Integer timeout-seconds]
(if-not (.getJobComplete response)
;; 99% of the time by the time this is called `.getJobComplete` will return `true`. On the off chance it doesn't, wait a few seconds for the job to finish.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment