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(retry): Add retry logic #146

Merged
merged 2 commits into from
Dec 11, 2024
Merged

feat(retry): Add retry logic #146

merged 2 commits into from
Dec 11, 2024

Conversation

lvalerom
Copy link
Contributor

If a call to any of the providers' APIs fails we do not retry and the entire run fails. This PR adds a retry logic to retry for a few minutes before failing the entire run.

@lvalerom lvalerom force-pushed the lvm/add-retry-logic branch from 2356704 to 8631347 Compare December 10, 2024 20:59
@lvalerom lvalerom requested a review from a team December 11, 2024 08:55
Copy link
Contributor

@vikin91 vikin91 left a comment

Choose a reason for hiding this comment

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

LGTM! By looking at https://github.com/stackrox/external-network-pusher/actions/runs/12264605728?pr=146 I see that it was tested and works.

I started commenting on potential further improvements, but I saw there are much more improvements possible than those two, so feel free to skip those.

pkg/crawlers/azure/azure.go Outdated Show resolved Hide resolved
pkg/crawlers/azure/azure.go Outdated Show resolved Hide resolved
@lvalerom
Copy link
Contributor Author

I started commenting on potential further improvements, but I saw there are much more improvements possible than those two, so feel free to skip those

Yeah there are a few inconsistencies, especially in the log messages. Maybe we can open a follow-up PR at some point.

@lvalerom lvalerom merged commit 76c285e into main Dec 11, 2024
5 checks passed
@lvalerom lvalerom deleted the lvm/add-retry-logic branch December 11, 2024 14:10
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