fix for unique oban worker option

This commit is contained in:
Alexander Strizhakov 2021-01-28 16:57:03 +03:00
parent 875fbaae35
commit 39335d4251
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -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