Jizoku.Executor.Leases.Claim (jizoku v0.4.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 Jizoku depend on that backend's structs.

Summary

Types

t()

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