Skip to content

Add retry support for failed chunk downloads#1

Draft
enescakir wants to merge 1 commit intoubicloudfrom
enes/chunk-retry
Draft

Add retry support for failed chunk downloads#1
enescakir wants to merge 1 commit intoubicloudfrom
enes/chunk-retry

Conversation

@enescakir
Copy link
Member

Previously, if any chunk failed during a parallel download, the entire download would be aborted. This change adds automatic retry logic with exponential backoff for transient failures.

  • Add -retries flag (default: 3) to configure max retry attempts
  • Implement exponential backoff between retries (1s, 2s, 4s, ...)
  • Retry on network errors and server errors (5xx, 408, 429)
  • Fail immediately on non-retryable errors (4xx client errors)

Previously, if any chunk failed during a parallel download, the entire
download would be aborted. This change adds automatic retry logic with
exponential backoff for transient failures.

- Add -retries flag (default: 3) to configure max retry attempts
- Implement exponential backoff between retries (1s, 2s, 4s, ...)
- Retry on network errors and server errors (5xx, 408, 429)
- Fail immediately on non-retryable errors (4xx client errors)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant