Skip to content
PACKAGES

executorSubmitCommand()

Creates an executor submit command.

import { executorSubmitCommand } from "@graphrefly/ts/executors/work-queue";
function executorSubmitCommand(
request: AgentRequestIssued,
policy?: ExecutorWorkQueuePolicy,
): WorkQueueCommand<ExecutorQueuedDispatchPayload>
ParameterTypeDescription
requestAgentRequestIssuedRequest value to lower, route, or record.
policyExecutorWorkQueuePolicyPolicy object used to admit, retry, or route work.

The executor submit command result.

import { executorSubmitCommand } from "@graphrefly/ts/executors/work-queue";

packages/ts/src/executors/work-queue.ts