From 29a2474d054849b69ecc8d0fdd2124a600a14727 Mon Sep 17 00:00:00 2001 From: Gabriel Jablonski Date: Mon, 25 Aug 2025 19:17:25 -0300 Subject: [PATCH] fix: add checkout_timeout to database configuration (#101) --- config/database.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/database.yml b/config/database.yml index 0577e3ee6..ff8327351 100644 --- a/config/database.yml +++ b/config/database.yml @@ -8,6 +8,7 @@ default: &default # frequency in seconds to periodically run the Reaper, which attempts # to find and recover connections from dead threads reaping_frequency: <%= ENV.fetch('DB_POOL_REAPING_FREQUENCY', 30) %> + checkout_timeout: <%= ENV.fetch('DB_CHECKOUT_TIMEOUT', 5) %> variables: # we are setting this value to be close to the racktimeout value. we will iterate and reduce this value going forward statement_timeout: <%= ENV["POSTGRES_STATEMENT_TIMEOUT"] || "14s" %>