Skip to content
Français

WatchRunOptions

import type { WatchRunOptions } from "@elie-laloum/outpost/observation";
  • fromOptional
    number | undefined
    Exclusive persistent cursor, default 0; negative, fractional or ahead-of-snapshot cursors fail.
  • pollMsOptional
    number | undefined
    Positive polling period in milliseconds while running, default 1000.
  • transporterRequired
    Transport
    Transport targeting the same location as the execution receiver.
  • idRequired
    string
    Application-selected run ID to read without taking execution ownership.
  • signalOptional
    AbortSignal | undefined
    Cancel transport reads and watch polling only; never cancels the observed execution.
  • maxBytesOptional
    number | undefined
    Per-object read limit in bytes, default 8388608; oversized snapshots or event segments fail.
export interface WatchRunOptions extends ReadRunOptions {
  readonly from?: number;
  readonly pollMs?: number;
}