Cotal TypeScript packages
    Preparing search index...

    Interface RunLease

    The lease this driver holds the run under, from the work pool.

    fencingToken is WorkLease.fencingToken — monotonic per item, and the coordinate the barrier orders takeovers by. holder and epoch are the identity it is bound to: a token alone would let a returning process re-establish itself on a lease it still remembers, which is the same defect the barrier exists to prevent.

    interface RunLease {
        epoch: number;
        fencingToken: number;
        holder: string;
        takeoverId: string;
    }
    Index
    epoch: number
    fencingToken: number
    holder: string
    takeoverId: string

    The takeover id this driver's journal credential was minted for.

    It names the replay consumer, and a consumer name is one subject token, so it cannot be covered by a grant pattern — it has to be known when the rows are minted. That is when the lease is handed out, which is why it arrives with the lease rather than being chosen here.