From be48fa5721601ef8e3ed7ec1b8025551353f5195 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 30 Jan 2023 11:49:12 +0100 Subject: [PATCH] Ensure `tootctl maintenance fix-duplicates` does not run into statement timeouts --- lib/mastodon/cli/maintenance.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/mastodon/cli/maintenance.rb b/lib/mastodon/cli/maintenance.rb index ae369a7397..f4712e9f77 100644 --- a/lib/mastodon/cli/maintenance.rb +++ b/lib/mastodon/cli/maintenance.rb @@ -177,6 +177,9 @@ module Mastodon::CLI def fix_duplicates verify_system_ready! + # Just in case the server's configuration sets a timeout + ActiveRecord::Base.connection.execute 'SET statement_timeout = 0' + process_deduplications deduplication_cleanup_tasks