forked from AkkomaGang/akkoma
only consider :op and :id args in duplicate checks
This commit is contained in:
parent
123db1abc4
commit
370576474c
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
|
|||
|
||||
use Pleroma.Workers.WorkerHelper,
|
||||
queue: "remote_fetcher",
|
||||
unique: [period: 300, states: Oban.Job.states()]
|
||||
unique: [period: 300, states: Oban.Job.states(), keys: [:op, :id]]
|
||||
|
||||
@impl Oban.Worker
|
||||
def perform(%Job{args: %{"op" => "fetch_remote", "id" => id} = args}) do
|
||||
|
|
Loading…
Reference in a new issue