watchRun
Purpose and behavior
Section titled “Purpose and behavior”Replay published observation segments strictly after from, then poll while the snapshot is running. Stop after draining a settled or abandoned snapshot. Persistent cursors continue across settled workflow resumes; heartbeat writes do not advance them. Signal cancellation affects only this reader. Missing segments, invalid records and cursors ahead of the snapshot throw.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”optionsRequiredWatchRunOptionsRun lookup, exclusive cursor, polling interval and optional reader cancellation.options.fromOptionalnumber | undefinedExclusive persistent cursor, default 0; negative, fractional or ahead-of-snapshot cursors fail.options.pollMsOptionalnumber | undefinedPositive polling period in milliseconds while running, default 1000.options.transporterRequiredTransportTransport targeting the same location as the execution receiver.options.idRequiredstringApplication-selected run ID to read without taking execution ownership.options.signalOptionalAbortSignal | undefinedCancel transport reads and watch polling only; never cancels the observed execution.options.maxBytesOptionalnumber | undefinedPer-object read limit in bytes, default 8388608; oversized snapshots or event segments fail.

