Squidie.Executor.Leases.Claim (squidie v0.1.2)

Copy Markdown View Source

Backend-neutral worker claim returned by a lease adapter.

backend_ref is intentionally opaque. It lets an adapter keep the native backend lease data it needs to heartbeat, complete, or fail the claim without making Squidie depend on that backend's structs.

Summary

Types

t()

@type t() :: %Squidie.Executor.Leases.Claim{
  backend_ref: term(),
  id: String.t() | binary(),
  item_id: String.t() | binary(),
  lease_until: non_neg_integer(),
  metadata: map(),
  owner: String.t(),
  payload: term(),
  queue: String.t()
}