Skip to content
PACKAGES

processEffectSubmitCommand()

Creates a process effect submit command.

import { processEffectSubmitCommand } from "@graphrefly/ts/orchestration/work-queue";
function processEffectSubmitCommand(
effect: ProcessEffectRequest<TEffect>,
opts: {
readonly workId?: string;
readonly commandId?: string;
readonly idempotencyKey?: string;
readonly sourceRefs?: readonly string[];
readonly policyRefs?: readonly string[];
readonly metadata?: Record<string, unknown>;
} = {},
): WorkQueueCommand<OrchestrationQueuedEffectPayload<TEffect>>
ParameterTypeDescription
effectProcessEffectRequest<TEffect>effect value used by the helper.
opts{ readonly workId?: string; readonly commandId?: string; readonly idempotencyKey?: string; readonly sourceRefs?: readonly string[]; readonly policyRefs?: readonly string[]; readonly metadata?: Record<string, unknown>; }Options that configure the helper.

The process effect submit command result.

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

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