SquidMesh.Executor.Leases.Claim (squid_mesh v0.1.0)

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 Squid Mesh depend on that backend's structs.

Summary

Types

t()

@type t() :: %SquidMesh.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()
}