fix for unique oban worker option
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 28 Jan 2021 13:57:03 +0000 (16:57 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 28 Jan 2021 13:57:03 +0000 (16:57 +0300)
lib/pleroma/workers/purge_expired_filter.ex

index 9c3db8af2accb457a2c6dd23da8237b76b0323db..4740d52e91ac99349fdab64d1f27ffaa0f0f996b 100644 (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