trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

[TRI-1907] Add documentation for `standardBackoff` and `exponentialBackoff`

Open matt-aitken opened this issue 1 year ago • 1 comments

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: https://github.com/triggerdotdev/trigger.dev/blob/0b657b33f9a634376a4c4be031b111f9c3c4d914/packages/core/src/retry.ts#L11

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

matt-aitken avatar Jan 26 '24 14:01 matt-aitken

The default is that no retrying happens.

It would be great if we could tweak the default of the Trigger client, and also the default per job and per specific integration.

If that's not possible, state in the documentation the best solution otherwise for these situations.

RobSchilderr avatar Jan 30 '24 08:01 RobSchilderr