Skip to main content
Version: Current

ReactionOptions

@rotorsoft/act-root


@rotorsoft/act-root / act/src / ReactionOptions

Type Alias: ReactionOptions

ReactionOptions = object

Defined in: libs/act/src/types/reaction.ts:183

Options for reaction processing.

For the shared retry-pacing shape see BackoffOptions and BackoffStrategy in ./action.js.

The backoff schedule is persisted on the stream, so every competing worker honors it and retry advances once per real attempt.

Propertiesโ€‹

backoff?โ€‹

readonly optional backoff?: BackoffOptions

Defined in: libs/act/src/types/reaction.ts:186

Optional retry pacing. When omitted, a retry waits a fixed 10 seconds. Either way, no worker re-attempts the stream before the delay; the lease never sets retry timing.


blockOnErrorโ€‹

readonly blockOnError: boolean

Defined in: libs/act/src/types/reaction.ts:184

Whether to block on error.


maxRetriesโ€‹

readonly maxRetries: number

Defined in: libs/act/src/types/reaction.ts:185

Retries after the first attempt: a failing stream is attempted maxRetries + 1 times before it blocks.