Skip to content

Fix retry arg and improve retry strategy#362

Merged
iurisilvio merged 10 commits intomainfrom
iuri/retry-backoff
Mar 10, 2025
Merged

Fix retry arg and improve retry strategy#362
iurisilvio merged 10 commits intomainfrom
iuri/retry-backoff

Conversation

@iurisilvio
Copy link
Copy Markdown
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
Copy Markdown
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