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

Add polly retry to get artifact URL from DevOps #8112

Merged

Conversation

praveenkuttappan
Copy link
Member

@praveenkuttappan praveenkuttappan commented Apr 17, 2024

Request to get artifact URL is still failing with 404 error. Adding polly retry to get URL.URL is working fine when attempted again.

@praveenkuttappan praveenkuttappan self-assigned this Apr 17, 2024
@praveenkuttappan praveenkuttappan added APIView Central-EngSys This issue is owned by the Engineering System team. labels Apr 17, 2024
@@ -56,10 +56,25 @@ public async Task<Stream> DownloadPackageArtifact(string repoName, string buildI

private async Task<string> getDownloadArtifactUrl(string buildId, string artifactName, string project)
{
var pauseBetweenFailures = TimeSpan.FromSeconds(2);
Copy link
Member

Choose a reason for hiding this comment

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

is this number arbritary? or it has history to it

Copy link
Member Author

Choose a reason for hiding this comment

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

2 seconds should be ideally enough to start the delay span. So, it's just arbitrary.

@praveenkuttappan praveenkuttappan merged commit 6529d09 into Azure:main Apr 17, 2024
9 checks passed
@praveenkuttappan praveenkuttappan deleted the Add_polly_get_download_url branch April 17, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIView Central-EngSys This issue is owned by the Engineering System team.
Projects
Status: ✅ Done
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants