We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3719d62 commit 42b776dCopy full SHA for 42b776d
src/clj/xt_play/handler.clj
@@ -68,6 +68,7 @@
68
(defn run-handler [{{body :body} :parameters :as request}]
69
(log/debug "run-handler" request)
70
(log/info :db-run body)
71
+ #_(Thread/sleep 4000) ;; useful to confirm the front :db-run-opts timeout
72
(if-let [result (txs/run!! body)]
73
{:status 200
74
:body result}
src/cljs/xt_play/model/run.cljs
@@ -10,7 +10,7 @@
10
{:method :post
11
:uri "/beta-db-run"
12
:params params
13
- :timeout 3000
+ :timeout 30000 ;; timeout must be greater than the API cold start response time
14
:format (ajax/json-request-format)
15
:response-format (ajax/json-response-format {:keywords? true})
16
:on-success [::request-success]
0 commit comments