Oban worker for async soft-bounce escalation.
Summary
Functions
Enqueues a soft-bounce escalation job through the optional-dep gateway.
Evaluates whether recent deferred events warrant suppression.
Types
@type action() :: :hard_suppress | {:suppress_for, [{:days, pos_integer()}]}
Functions
@spec available?() :: true
@spec enqueue(Ecto.Multi.t(), map()) :: Ecto.Multi.t()
Enqueues a soft-bounce escalation job through the optional-dep gateway.
@spec evaluate(String.t(), String.t(), keyword()) :: {:ok, Mailglass.Suppression.Entry.t() | :below_threshold} | {:error, Ecto.Changeset.t() | term()}
Evaluates whether recent deferred events warrant suppression.