Skip to content
Français

WorkflowJobCheckpoint

import type { WorkflowJobCheckpoint } from "@elie-laloum/outpost";
  • storeRequired
    WorkflowCheckpointStore
    Checkpoint store holding every run.
  • versionRequired
    string
    Base version; change it when task implementations change. The effective version appends #input: and a 32-character SHA-256 digest of the job input.
  • resumeOptional
    "retry-incomplete" | undefined
    Set to retry-incomplete to authorize replay of incomplete tasks and their side effects; without it, an incomplete checkpoint completes the job with an error.
export interface WorkflowJobCheckpoint {
  readonly store: WorkflowCheckpointStore;
  /** Combined with a digest of the job input to form the checkpoint version. */
  readonly version: string;
  /** Explicitly authorize replay of incomplete tasks and their side effects. */
  readonly resume?: "retry-incomplete";
}