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

feat(website, uri) - adding retry logic for read operations #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michael-anderson-swi
Copy link
Contributor

No description provided.

@michael-anderson-swi michael-anderson-swi requested a review from a team as a code owner December 20, 2024 01:46
return *resp.Entities.ById, nil
}

uriPtr, err := backoff.Retry(ctx, operation, backoff.WithBackOff(backoff.NewExponentialBackOff()))
Copy link

Choose a reason for hiding this comment

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

Could you set MaxElapsedTime to something reasonable? I want to say 5 minutes, maybe? That could cause TF applies with many websites/uris to take a long time to process. Maybe 1 minute? The default of 15 minutes is too high.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants