Skip to content

feat(utils): add retry utility#18

Merged
maitamdev merged 1 commit intomainfrom
feat/retry-utils
Mar 4, 2026
Merged

feat(utils): add retry utility#18
maitamdev merged 1 commit intomainfrom
feat/retry-utils

Conversation

@maitamdev
Copy link
Copy Markdown
Owner

@maitamdev maitamdev commented Mar 4, 2026

Retry helper with exponential backoff for resilient API calls.


Summary by cubic

Adds a withRetry utility to wrap async API calls with exponential backoff. Supports options with defaults: maxRetries=3, delay=1000ms, backoff=2; rethrows the last error after the final attempt.

Written for commit aa64258. Summary will update on new commits.

Co-authored-by: DHV Team <dhvteam@users.noreply.github.com>
@maitamdev maitamdev merged commit e651fcd into main Mar 4, 2026
1 of 3 checks passed
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dhv-guiding-light Building Building Preview, Comment Mar 4, 2026 7:19pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 4, 2026

Warning

Rate limit exceeded

@maitamdev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 10 minutes and 18 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 78f845c8-40e5-4ccf-87b1-5ba126534c49

📥 Commits

Reviewing files that changed from the base of the PR and between 72ed673 and aa64258.

📒 Files selected for processing (1)
  • src/utils/retryUtils.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/retry-utils

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

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