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: do not retry for client exceptions #36

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

ruromero
Copy link
Contributor

I think most client exceptions should not be retried. When a resource is not found, not authorized or bad request errors are clear examples that a retry will not change the result and only delay the response.

This change only affects the async request_with_retry as the sync version belongs to the Morpheus SDK. This change will only affect the intel retrieval.

Copy link
Collaborator

@ashsong-nv ashsong-nv left a comment

Choose a reason for hiding this comment

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

Thanks for making this a configurable option! Some changes are needed to pass in the config setting, and then we should be good to merge.

Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
Copy link
Collaborator

@ashsong-nv ashsong-nv left a comment

Choose a reason for hiding this comment

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

Apologies for the delay and thank you for making the requested updates! Tested and LGTM.

@ashsong-nv ashsong-nv merged commit 6979d3a into NVIDIA-AI-Blueprints:main Feb 14, 2025
@ruromero ruromero deleted the 4xx-retry-upstream branch February 17, 2025 08:21
@ruromero
Copy link
Contributor Author

No problem at all. Happy to collaborate 🚀

ruromero pushed a commit to ruromero/vulnerability-analysis that referenced this pull request Mar 6, 2025
fix: add explicit docker format for container building
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