Set database timeout to infinity when trying to detect orphan media
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
07d7f908c9
commit
2b99b48258
@ -72,7 +72,7 @@ defmodule Mobilizon.Service.CleanOrphanMedia do
|
|||||||
)
|
)
|
||||||
|
|
||||||
query
|
query
|
||||||
|> Repo.all()
|
|> Repo.all(timeout: :infinity)
|
||||||
|> Enum.filter(fn %Media{file: %File{url: url}} ->
|
|> Enum.filter(fn %Media{file: %File{url: url}} ->
|
||||||
is_all_media_orphan?(url, expiration_date)
|
is_all_media_orphan?(url, expiration_date)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user