Skip to content
Français

QueueClaim

import type { QueueClaim } from "@elie-laloum/outpost";
  • workerRequired
    string
    Name of the claiming worker, recorded on the job and checked by renew() and complete().
  • handlersRequired
    readonly string[]
    Handler names this worker can run, 1 to 100; only jobs for these handlers are claimed.
  • leaseMsRequired
    number
    Lease duration in milliseconds, from 30 to 300000.
export interface QueueClaim {
  readonly worker: string;
  readonly handlers: readonly string[];
  readonly leaseMs: number;
}