Skip to content

Add maximum_retries config to limit BOX API retry duration#11

Merged
kentoyoshida merged 1 commit into
masterfrom
feature/add-maximum-retries
May 12, 2026
Merged

Add maximum_retries config to limit BOX API retry duration#11
kentoyoshida merged 1 commit into
masterfrom
feature/add-maximum-retries

Conversation

@kentoyoshida
Copy link
Copy Markdown
Contributor

@kentoyoshida kentoyoshida commented May 12, 2026

Summary

  • Add maximum_retries config option (default: 3) and apply it via BoxAPIConnection.setMaxRetryAttempts() so users can cap the number of retry attempts.
  • Addresses a long-running job issue where the BOX SDK respects the Retry-After header (up to 6 days) on rate-limited (HTTP 429) responses and keeps retrying.
  • Add unit tests for the config mapping (default value, explicit value, and zero).

Test plan

  • ./gradlew test — all unit tests pass (5 tests, 0 failures)

BOX API responds with Retry-After (up to 6 days) on rate limit (HTTP 429),
which causes long-running jobs when the SDK respects the header.
Add maximum_retries config (default: 3) to cap retry attempts and
let jobs fail fast in such cases.

Refs: primenumber-dev/n-transfer-ui#37479

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@yas-okadatech yas-okadatech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kentoyoshida kentoyoshida merged commit ce3b270 into master May 12, 2026
1 check passed
@kentoyoshida kentoyoshida deleted the feature/add-maximum-retries branch May 12, 2026 07:44
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.

2 participants