From: rinpatch Date: Wed, 22 May 2019 17:10:52 +0000 (+0300) Subject: Disable timeouts for object pruning query X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=54e10a3e55fe46b71ef7f330605baf8bcccd5a44;p=akkoma Disable timeouts for object pruning query --- diff --git a/lib/mix/tasks/pleroma/database.ex b/lib/mix/tasks/pleroma/database.ex index f9bafb277..4d480ac3f 100644 --- a/lib/mix/tasks/pleroma/database.ex +++ b/lib/mix/tasks/pleroma/database.ex @@ -107,7 +107,7 @@ defmodule Mix.Tasks.Pleroma.Database do where: fragment("split_part(?->>'actor', '/', 3) != ?", o.data, ^Pleroma.Web.Endpoint.host()) ) - |> Repo.delete_all() + |> Repo.delete_all(timeout: :infinity) if Keyword.get(options, :vacuum) do Logger.info("Runnning VACUUM FULL")