Handle failed fetches a bit better #743
1 changed files with 0 additions and 2 deletions
|
@ -9,8 +9,6 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
|
||||||
|
|
||||||
@impl Oban.Worker
|
@impl Oban.Worker
|
||||||
|
|||||||
def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
|
def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
|
||||||
{:ok, _object} = Fetcher.fetch_object_from_id(id, depth: args["depth"])
|
|
||||||
|
|
||||||
case Fetcher.fetch_object_from_id(id, depth: args["depth"]) do
|
case Fetcher.fetch_object_from_id(id, depth: args["depth"]) do
|
||||||
{:ok, _object} ->
|
{:ok, _object} ->
|
||||||
:ok
|
:ok
|
||||||
|
|
Loading…
Reference in a new issue
Multiple fetches of the same AP id can still occur if the
depth
arg differs; settingkeys
to only considerop
andid
should avoid this