Disable timeouts for object pruning query
authorrinpatch <rinpatch@sdf.org>
Wed, 22 May 2019 17:10:52 +0000 (20:10 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 22 May 2019 17:10:52 +0000 (20:10 +0300)
lib/mix/tasks/pleroma/database.ex

index f9bafb27731c68d36c4f091ed9422939a6fc16bc..4d480ac3fb38d69dbab4843ea364d1a70dbac4a5 100644 (file)
@@ -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")