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
1 changed files with 1 additions and 1 deletions

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