Skip to main content

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.

Reaction-side note on backoff: backoff state lives in process memory on the DrainController. With N competing workers (each running its own controller), retries escalate at most Nร— faster than configured โ€” the shared retry counter on the stream watermark climbs across workers, reaching the blockOnError threshold sooner. This is intentional: per-worker pacing speeds up recovery on transient per-worker faults, and poison messages still get quarantined.

Propertiesโ€‹

backoff?โ€‹

readonly optional backoff?: BackoffOptions

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

Optional retry pacing. When omitted, retries run as soon as the lease expires (current behavior โ€” implicit backoff bounded by leaseMillis). When set, the drain controller waits at least the computed delay before re-attempting on this worker.


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

Maximum number of retries.