Skip to main content
Version: Current

ActionOptions

@rotorsoft/act-root


@rotorsoft/act-root / act/src / ActionOptions

Type Alias: ActionOptions

ActionOptions = object

Defined in: libs/act/src/types/action.ts:608

Per-action retry policy, declared on state.on(entry, options). The orchestrator owns the loop for every call, a reaction's included: on ConcurrencyError the cache is invalidated, an optional backoff delay is applied, and the action re-runs from load. Any other error rethrows immediately and does not consume the budget.

No blockOnError field — commands surface errors to callers; they do not block streams.

Properties​

backoff?​

readonly optional backoff?: BackoffOptions

Defined in: libs/act/src/types/action.ts:610

Optional retry pacing. When omitted, retries run immediately — fine at low contention. Set to { strategy: "exponential", baseMs, jitter: true } on hot streams where many writers contend for the same version.


maxRetries?​

readonly optional maxRetries?: number

Defined in: libs/act/src/types/action.ts:609

Additional attempts after the initial call. Default 0 (a single attempt). Total invocations equal 1 + maxRetries.