MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / shouldRetry

Function shouldRetry

integrations/replicate/src/index.ts:237–239  ·  view source on GitHub ↗
(method: string, status: number)

Source from the content-addressed store, hash-verified

235}
236
237function shouldRetry(method: string, status: number) {
238 return status === 429 || (method === "GET" && status >= 500);
239}
240
241export function onError(error: unknown): ReturnType<RunTaskErrorCallback> {
242 if (!isReplicateApiError(error)) {

Callers 1

onErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…