Skip to main content

@slack/web-api / retryPolicies

Variable: retryPolicies

const retryPolicies: object;

Defined in: src/retry-policies.ts:35

Type Declaration

fiveRetriesInFiveMinutes

fiveRetriesInFiveMinutes: RetryOptions;

Short & sweet, five retries in five minutes and then bail.

rapidRetryPolicy

rapidRetryPolicy: RetryOptions;

This policy is just to keep the tests running fast.

tenRetriesInAboutThirtyMinutes

tenRetriesInAboutThirtyMinutes: RetryOptions;

The default retry policy. Retry up to 10 times, over the span of about 30 minutes. It's not exact because randomization has been added to prevent a stampeding herd problem (if all instances in your application are retrying a request at the exact same intervals, they are more likely to cause failures for each other).