Materializes committed outbox events into durable, independently leased jobs.
The job and the event's dispatched state are written in one Concord transaction. Replaying an operation is therefore safe and returns the existing job instead of creating duplicate work.
Summary
Functions
@spec materialize( binary(), keyword() ) :: {:ok, [ExStorageService.Metadata.Models.Job.t()]} | {:error, term()}
@spec materialize_page(binary() | nil, pos_integer(), keyword()) :: {:ok, %{ jobs: [ExStorageService.Metadata.Models.Job.t()], next_cursor: binary() | nil }} | {:error, term()}