Skip to content
Français

RecipeEnqueueOptions

import type { RecipeEnqueueOptions } from "@elie-laloum/outpost/recipes";
  • queueRequired
    string
    Named queue, with an optional queues. prefix; only this queue and its dependencies are prepared.
  • handlerRequired
    string
    Trusted handler name registered by a separately started worker.
  • runIdRequired
    string
    Checkpoint run ID included with the recipe parameters in the native trigger job input.
  • idOptional
    string | undefined
    Explicit queue job ID; defaults to recipe:<handler>:<runId> for deterministic repeated publication.
  • idempotencyKeyOptional
    string | undefined
    Stable effect key when deliberately publishing a distinct job ID for the same effect; persistent destination deduplication remains necessary.
  • deadlineOptional
    number | undefined
    Absolute epoch millisecond deadline enforced by the selected queue.
  • signalOptional
    AbortSignal | undefined
    Cancel queue preparation before publication; the native enqueue operation has no cancellation parameter.
  • inputsOptional
    Readonly<Record<string, WorkflowJson>> | undefined
    Recipe parameter mapping validated and completed with defaults before preparing the queue.
export interface RecipeEnqueueOptions extends Pick<
  RecipeRunOptions,
  "inputs" | "signal"
> {
  readonly queue: string;
  readonly handler: string;
  readonly runId: string;
  readonly id?: string;
  readonly idempotencyKey?: string;
  readonly deadline?: number;
}