From: Alexander Strizhakov Date: Thu, 28 Jan 2021 13:57:03 +0000 (+0300) Subject: fix for unique oban worker option X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=39335d42513e47289fc825d04680531b84862686;p=akkoma fix for unique oban worker option --- diff --git a/lib/pleroma/workers/purge_expired_filter.ex b/lib/pleroma/workers/purge_expired_filter.ex index 9c3db8af2..4740d52e9 100644 --- a/lib/pleroma/workers/purge_expired_filter.ex +++ b/lib/pleroma/workers/purge_expired_filter.ex @@ -7,7 +7,7 @@ defmodule Pleroma.Workers.PurgeExpiredFilter do Worker which purges expired filters """ - use Oban.Worker, queue: :filter_expiration, max_attempts: 1, unique: [fields: [:args]] + use Oban.Worker, queue: :filter_expiration, max_attempts: 1, unique: [period: :infinity] import Ecto.Query