From 9acbf62c52ea93ab95b14d8d51b6af05e71cfa9d Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Tue, 10 Sep 2024 22:02:47 +0800 Subject: [PATCH] chore: use env control database statement timeout (#2191) Signed-off-by: Miles Zhang --- config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml b/config/database.yml index 2405ef716..1ef3510ca 100644 --- a/config/database.yml +++ b/config/database.yml @@ -27,7 +27,7 @@ default: &default reaping_frequency: 60 # every 60s check pool timeout: 5000 # over 5s will timeout variables: - statement_timeout: 60000 # query timemout over 60s + statement_timeout: <%= ENV.fetch("DATABASE_STATEMENT_TIMEOUT") { 60000 } %> # query timemout over 60s idle_in_transaction_session_timeout: 120000 # idle transaction over 120s development: