From 2943e2cb7e273b139f796fee86323b4882461340 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 28 Nov 2025 18:11:36 +0000 Subject: [PATCH] Set a 5 minute statement timeout on rails database connections This is equal to the API timeout, which is longer than the web timeout, and is intended to act as a backstop. --- cookbooks/web/templates/default/database.yml.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/web/templates/default/database.yml.erb b/cookbooks/web/templates/default/database.yml.erb index ab3c9c63b..9effe1bbd 100644 --- a/cookbooks/web/templates/default/database.yml.erb +++ b/cookbooks/web/templates/default/database.yml.erb @@ -14,6 +14,8 @@ production: password: <%= @password %> <% end -%> encoding: utf8 + variables: + statement_timeout: 300s development: adapter: postgresql @@ -29,3 +31,5 @@ development: password: <%= @password %> <% end -%> encoding: utf8 + variables: + statement_timeout: 300s -- 2.39.5