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:150

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:153

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:151

Whether to block on error.


maxRetries​

readonly maxRetries: number

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

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