Merge branch 'fix/prune-objects-times-out' into 'develop'

Disable timeouts for object pruning query

See merge request pleroma/pleroma!1193
This commit is contained in:
rinpatch 2019-05-22 17:19:51 +00:00
commit 0b4f569c5b

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")