Gust.Run.Claim behaviour (gust v0.1.26)
Behavior + facade for claiming/renewing run leases.
Configure the implementation with:
config :gust, Gust.Run.Claim, Gust.Run.Claim.Repo
Summary
Types
@type next_run_result() :: nil | %{ run: run(), token: token(), claimed_by: String.t(), claim_expires_at: DateTime.t() }
@type run() :: Gust.Flows.Run.t()
@type run_id() :: term()
@type token() :: Ecto.UUID.t()
Callbacks
@callback next_run() :: next_run_result()