Skip to content

ReadWriteExecuteOptions

Tunes deduplication and retry for one read-write execution.

Conflict errors

readonly optional idempotencyScope?: string

Runs the execution at most once per Event identifier within this scope. A second execution for the same Event identifier and scope in the Workspace is rejected with error-020-idempotent-execution-rejected instead of running the callback again.

Deduplication requires the Event to carry an id. The token is committed together with the execution’s writes, so a failed attempt leaves no token behind.

undefined, disabling deduplication

Conflict errors


readonly optional maximumTransientRetries?: number

The number of additional attempts made when an attempt fails with a transient error, such as a state transition conflict with a concurrent execution. Each retry rolls back the failed attempt and runs the callback again with fresh Item references and a fresh execution time. 0 disables retries. Other errors end the execution without a retry.

1

StateTransitionConflictError