workQueueLeaseExpirationCommandProjector()
Lower only lease-expiration readiness candidates into existing workQueue expire-leases commands.
Import
Section titled “Import”import { workQueueLeaseExpirationCommandProjector } from "@graphrefly/ts/orchestration/work-queue";Signature
Section titled “Signature”function workQueueLeaseExpirationCommandProjector( graph: Graph, opts: { readonly name?: string; readonly candidates: Node<WorkQueueReadinessCandidate>; },): WorkQueueLeaseExpirationCommandBundle<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | { readonly name?: string; readonly candidates: Node<WorkQueueReadinessCandidate>; } | Options that configure the helper. |
Returns
Section titled “Returns”A node bundle that emits the projected records.
Example
Section titled “Example”import { workQueueLeaseExpirationCommandProjector } from "@graphrefly/ts/orchestration/work-queue";Source
Section titled “Source”packages/ts/src/orchestration/work-queue-scheduled-readiness.ts