Ecto schema for chimeway_delivery_attempts — immutable append-only record of each provider call for a delivery. No updated_at — attempts are never mutated.
Attempt identity and classification
attempt_number:integer — 1-indexed ordinal of this attempt for its delivery, computed at insert time inside the sameEcto.Multias the attempt insert and required by the changeset.Deliveries.record_attempt/2injects the value from the:next_attempt_numberMulti step.
as a plain string with changeset whitelist validation (NOTerror_class:string — one of `"temporary""permanent" "bounced"` for `:failed :rejected :bounced outcomes;nilfor:succeeded`. PersistedEcto.Enum) to match the project's durable string vocabulary.
Summary
Functions
Returns the canonical list of allowed error_class string values.
Used by the dispatch executor to validate that the dispatcher
only emits whitelisted classifications. "unknown_classification" is the
fallback value emitted by classify/1 for unexpected adapter return shapes.
Types
Functions
@spec error_classes() :: [String.t()]
Returns the canonical list of allowed error_class string values.
Used by the dispatch executor to validate that the dispatcher
only emits whitelisted classifications. "unknown_classification" is the
fallback value emitted by classify/1 for unexpected adapter return shapes.