mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 20:46:11 +00:00
only consider :op and :id args in duplicate checks
This commit is contained in:
parent
123db1abc4
commit
370576474c
|
@ -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