medium severityTrigger.dev SDK task retry
Task fails to retry after many attempts with scheduling error like \"backoff overflow\", infinite delay, or NaN timeout in logs; scheduler crashes or skips retries.
Root cause
Exponential backoff calculation `minTimeout * factor ^ (attempt-1)` can produce extremely large numbers (NaN/infinity) for high `maxAttempts` without proper capping in SDK math, causing retry scheduling failure when delay exceeds JavaScript Number.MAX_SAFE_INTEGER (~9e15 ms).
Trigger.devretrybackoffexponentialoverflowtask