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

AIP-8072 set retry "2m" not 2 #284

Merged
merged 3 commits into from
Feb 8, 2024
Merged

Conversation

talebzeghmi
Copy link
Collaborator

This is concerning because the default retry was 2 seconds between retries!

is_number = isinstance(val, numbers.Number) or (
isinstance(val, str) and val.isdecimal()
)
return f"{val}m" if is_number else val

Choose a reason for hiding this comment

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

Hmm do we want to wait for 2 mins all the time? Just thinking how much time that'd potentially add to the integration test runs. Is there a way to be smarter here and use an exponential backoff?

Edit: To clarify I think this change given it's for the _get_mins_between_retries isn't the issue, this fix is good and should stay. But for the integration tests it'd be nice for those to run as quickly as possible, not sure what that means in terms of potential changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for bringing this up!
I set --with retry:minutes_between_retries=0 and @retry(minutes_between_retries=0) for integration tests!

@talebzeghmi talebzeghmi merged commit c83a345 into feature/aip Feb 8, 2024
4 checks passed
@talebzeghmi talebzeghmi deleted the tz/AIP-8067-2m-retry branch February 8, 2024 18:47
@talebzeghmi talebzeghmi changed the title AIP-8067 set retry "2m" not 2 AIP-8072 set retry "2m" not 2 Feb 8, 2024
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.

3 participants