DoubleEntryLedger.Oban (double_entry_ledger v0.4.0)
View SourceHelper for DoubleEntryLedger's dedicated Oban instance.
The library runs a named Oban supervisor registered under the atom
DoubleEntryLedger.Oban, separate from any Oban the consumer app runs
for its own background jobs. This avoids colliding with the default
unnamed Oban instance and makes the library drop-in: consumers don't
need to know DEL's queue names.
Call sites inside the library enqueue through insert/3, which
preserves the Ecto.Multi pipeline shape while targeting DEL's named
instance.
Summary
Functions
Pipeline-friendly Oban.insert/4 for DEL's named instance.
Functions
@spec insert( Ecto.Multi.t(), atom(), Ecto.Changeset.t() | (map() -> Ecto.Changeset.t()) ) :: Ecto.Multi.t()
Pipeline-friendly Oban.insert/4 for DEL's named instance.
multi |> DoubleEntryLedger.Oban.insert(:step_name, fn _ -> ... end)