DripDrop.Policy.AdapterHealthCheck (DripDrop v0.1.0)

Copy Markdown View Source

Outbound-only dispatch gate for adapter health state.

Summary

Functions

Allows healthy outbound adapters and defers resting adapters.

Returns true when an adapter is unavailable enough to pause an enrollment.

Functions

check(context, adapter)

@spec check(map(), Ecto.Schema.t()) ::
  :ok | {:defer, DateTime.t(), map()} | {:error, map()}

Allows healthy outbound adapters and defers resting adapters.

terminally_unavailable?(arg1)

@spec terminally_unavailable?(Ecto.Schema.t() | nil) :: boolean()

Returns true when an adapter is unavailable enough to pause an enrollment.