Skip to content

[TRI-1907] Add documentation for standardBackoff and exponentialBackoff #871

@matt-aitken

Description

@matt-aitken

When using io.runTask you can specify retry settings (for when an error is thrown). The default is that no retrying happens.

We provide a lot of settings and figuring out good ones can be tricky. So we export two useful ones here:

export function calculateRetryAt(retryOptions: RetryOptions, attempts: number): Date | undefined {

We should add documentation to the SDK reference about this. And probably also link to it from here: https://trigger.dev/docs/sdk/io/runtask

TRI-1907

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions