Skip to content
Français

RunObserverOptions

import type { RunObserverOptions } from "@elie-laloum/outpost/observation";
  • transporterRequired
    Transport
    Transport owning run snapshots and immutable event segments; caller owns its credentials and lifecycle.
  • idRequired
    string
    Unique ID of at most 128 characters in one safe transport key segment.
  • kindRequired
    "workflow" | "dispatch"
    Choose dispatch for one request or workflow for one task graph.
  • heartbeatMsOptional
    number | undefined
    Heartbeat period in milliseconds, default 5000; positive and less than abandonAfterMs.
  • abandonAfterMsOptional
    number | undefined
    Suspected abandonment delay in milliseconds, default 30000, strictly greater than heartbeatMs.
  • resumeOptional
    boolean | undefined
    Explicitly append to a settled workflow record with a fresh hub; duplicate creation and unsettled takeover remain refused.
export interface RunObserverOptions {
  readonly transporter: Transport;
  readonly id: string;
  readonly kind: "dispatch" | "workflow";
  readonly heartbeatMs?: number;
  readonly abandonAfterMs?: number;
  readonly resume?: boolean;
}