Skip to content

Conversation

@KengoWada
Copy link
Owner

Proposed changes

This pull request proposes the following changes:

  • Updated the BackoffPolicy.Calculate method to implement exponential backoff with full jitter, improving retry behavior for failed tasks.
  • Revised associated tests to validate the new backoff calculation logic and ensure correctness across different retry counts.
  • Updated example code to demonstrate how the revised backoff logic behaves in real usage, reflecting the latest retry mechanism.

Related issue(s)

Fixes #14

Checklist

Please ensure that the following checks have been performed:

  • I have read and followed the project's contributing guidelines.
  • My code follows the project's coding style.
  • I have added or updated relevant documentation.
  • I have added or updated tests (if applicable).
  • All new and existing tests pass.
  • My changes do not introduce any new warnings or errors.

@KengoWada KengoWada self-assigned this Apr 29, 2025
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.00%. Comparing base (a2a02ec) to head (b27728a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #15      +/-   ##
===========================================
- Coverage    80.66%   80.00%   -0.67%     
===========================================
  Files            4        4              
  Lines          150      145       -5     
===========================================
- Hits           121      116       -5     
  Misses          29       29              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KengoWada KengoWada merged commit 76791b9 into develop Apr 29, 2025
2 checks passed
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.

[FEATURE] - Update backoff strategy to exponential backoff with full jitter

3 participants