Skip to content
PACKAGES

workQueueReadinessHandoffProjector()

Consume D433 shared readiness through workQueue-owned handoff material.

Ready facts only produce queue-domain candidates/status. They do not claim work, expire leases, cancel, complete, fail, or append workQueue records. Lease expiration candidates can be lowered separately into the existing mutation-bearing expire-leases command path.

import { workQueueReadinessHandoffProjector } from "@graphrefly/ts/orchestration/work-queue";
function workQueueReadinessHandoffProjector(
graph: Graph,
opts: {
readonly name?: string;
readonly records: Node<WorkQueueRecord<T>>;
readonly ready: Node<ScheduledReadinessReady>;
readonly overdue?: Node<ScheduledReadinessOverdue>;
},
): WorkQueueReadinessHandoffBundle
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
opts{ readonly name?: string; readonly records: Node<WorkQueueRecord<T>>; readonly ready: Node<ScheduledReadinessReady>; readonly overdue?: Node<ScheduledReadinessOverdue>; }Options that configure the helper.

A node bundle that emits the projected records.

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

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