oban options should be a keyword list
This commit is contained in:
parent
5043571084
commit
d70fa16383
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ defmodule Pleroma.Workers.WorkerHelper do
|
||||||
queue = Keyword.fetch!(opts, :queue)
|
queue = Keyword.fetch!(opts, :queue)
|
||||||
# by default just stop unintended duplicates - this can and should be overridden
|
# by default just stop unintended duplicates - this can and should be overridden
|
||||||
# if you want to have a more complex uniqueness constraint
|
# if you want to have a more complex uniqueness constraint
|
||||||
uniqueness = Keyword.get(opts, :unique, period: 1)
|
uniqueness = Keyword.get(opts, :unique, [period: 1])
|
||||||
|
|
||||||
quote do
|
quote do
|
||||||
# Note: `max_attempts` is intended to be overridden in `new/2` call
|
# Note: `max_attempts` is intended to be overridden in `new/2` call
|
||||||
|
|
Loading…
Reference in a new issue