Skip to content
PACKAGES

workQueueLeaseExpirationCommandProjector()

Lower only lease-expiration readiness candidates into existing workQueue expire-leases commands.

import { workQueueLeaseExpirationCommandProjector } from "@graphrefly/ts/orchestration/work-queue";
function workQueueLeaseExpirationCommandProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly candidates: Node<WorkQueueReadinessCandidate>;
},
): WorkQueueLeaseExpirationCommandBundle<T>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ readonly name?: string; readonly candidates: Node<WorkQueueReadinessCandidate>; }Options that configure the helper.

A node bundle that emits the projected records.

import { workQueueLeaseExpirationCommandProjector } from "@graphrefly/ts/orchestration/work-queue";

packages/ts/src/orchestration/work-queue-scheduled-readiness.ts