Skip to content

Commit

Permalink
fix(platform/azure): Allows azure-got-wrapper to retry requests follo…
Browse files Browse the repository at this point in the history
…wing connection failures (#24348)
  • Loading branch information
ccopsey committed Sep 12, 2023
1 parent b0ef5e1 commit 496bc19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/modules/platform/azure/azure-got-wrapper.ts
Expand Up @@ -24,7 +24,10 @@ export function azureObj(): azure.WebApi {
throw new Error(`No config found for azure`);
}
const authHandler = getAuthenticationHandler(config);
return new azure.WebApi(endpoint, authHandler);
return new azure.WebApi(endpoint, authHandler, {
allowRetries: true,
maxRetries: 2,
});
}

export function gitApi(): Promise<IGitApi> {
Expand Down

0 comments on commit 496bc19

Please sign in to comment.