Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retry arg and improve retry strategy #362

Merged
merged 10 commits into from
Mar 10, 2025
Merged

Conversation

iurisilvio
Copy link
Contributor

@iurisilvio iurisilvio commented Mar 10, 2025

Description

We're not retrying because we're not handling the -r arg. It's broken since PR.

This PR:

  • Pass num_retries downstream to retry on errors
  • Add retry on annotation upload errors
  • Add backoff and jitter to our retry strategy

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

I tested import command in staging, but hard to test for failures.

@iurisilvio iurisilvio self-assigned this Mar 10, 2025
@iurisilvio iurisilvio changed the title Retry with backoff on annotation upload error Fix retry arg and add backoff to retry on annotation upload error Mar 10, 2025
@iurisilvio iurisilvio changed the title Fix retry arg and add backoff to retry on annotation upload error Fix retry arg and improve retry strategy Mar 10, 2025
joaomarcoscrs
joaomarcoscrs previously approved these changes Mar 10, 2025
Copy link
Contributor

@joaomarcoscrs joaomarcoscrs left a comment

Choose a reason for hiding this comment

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

LGTM, great catch!

@iurisilvio iurisilvio merged commit b9b4796 into main Mar 10, 2025
3 checks passed
@iurisilvio iurisilvio deleted the iuri/retry-backoff branch March 10, 2025 15:31
@probicheaux probicheaux mentioned this pull request Mar 11, 2025
4 tasks
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