Skip to main content

Interface: RetryPolicyConfig

Defined in: src/interfaces.ts:152

Configuration for retry policies in Temporal activities and workflows. Defines how many times and with what intervals to retry failed operations.

Example​

const retryPolicy: RetryPolicyConfig = {
maximumAttempts: 3,
initialInterval: '1s',
maximumInterval: '10s',
backoffCoefficient: 2.0
};

Deprecated​

Use RetryPolicy from @temporalio/common instead. All fields on RetryPolicy cover the same options.

Properties​

backoffCoefficient​

backoffCoefficient: number

Defined in: src/interfaces.ts:158


initialInterval​

initialInterval: Duration

Defined in: src/interfaces.ts:155

Format​

number of milliseconds or ms-formatted string


maximumAttempts​

maximumAttempts: number

Defined in: src/interfaces.ts:153


maximumInterval​

maximumInterval: Duration

Defined in: src/interfaces.ts:157

Format​

number of milliseconds or ms-formatted string