mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 00:30:57 +01:00
Ensure tootctl maintenance fix-duplicates
does not run into statement timeouts
This commit is contained in:
parent
ffa22b9ce0
commit
be48fa5721
1 changed files with 3 additions and 0 deletions
|
@ -177,6 +177,9 @@ module Mastodon::CLI
|
||||||
def fix_duplicates
|
def fix_duplicates
|
||||||
verify_system_ready!
|
verify_system_ready!
|
||||||
|
|
||||||
|
# Just in case the server's configuration sets a timeout
|
||||||
|
ActiveRecord::Base.connection.execute 'SET statement_timeout = 0'
|
||||||
|
|
||||||
process_deduplications
|
process_deduplications
|
||||||
|
|
||||||
deduplication_cleanup_tasks
|
deduplication_cleanup_tasks
|
||||||
|
|
Loading…
Reference in a new issue