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