Skip to content
Français

QueueLease

import type { QueueLease } from "@elie-laloum/outpost";
  • idRequired
    string
    ID of the leased job.
  • workerRequired
    string
    Name of the worker holding the lease.
  • fenceRequired
    number
    Fence returned by the claim; a later claim or a cancellation makes it stale.
export interface QueueLease {
  readonly id: string;
  readonly worker: string;
  readonly fence: number;
}