Skip to content
PACKAGES

workItemSubmitCommand()

Creates a work item submit command.

import { workItemSubmitCommand } from "@graphrefly/ts/solutions/work-item/work-queue";
function workItemSubmitCommand(
request: WorkItemEffectRequested,
policy?: WorkItemWorkQueuePolicy,
): WorkQueueCommand<WorkItemQueuedWorkPayload>
ParameterTypeDescription
requestWorkItemEffectRequestedRequest value to lower, route, or record.
policyWorkItemWorkQueuePolicyPolicy object used to admit, retry, or route work.

The work item submit command result.

import { workItemSubmitCommand } from "@graphrefly/ts/solutions/work-item/work-queue";

packages/ts/src/solutions/work-item/work-queue.ts