Disable timeouts for object pruning query

This commit is contained in:
rinpatch 2019-05-22 20:10:52 +03:00
parent 83ca12f45e
commit 54e10a3e55

View File

@ -107,7 +107,7 @@ def run(["prune_objects" | args]) 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")