Skip to content

Commit a319753

Browse files
Merge master into feature/sdkv3
2 parents 60d4958 + 060b0a0 commit a319753

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/codewhisperer/client/codewhisperer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ export class DefaultCodeWhispererClient {
318318
public async codeModernizerGetCodeTransformationPlan(
319319
request: CodeWhispererUserClient.GetTransformationPlanRequest
320320
): Promise<PromiseResult<CodeWhispererUserClient.GetTransformationPlanResponse, AWSError>> {
321-
return (await this.createUserSdkClient()).getTransformationPlan(request).promise()
321+
// instead of the default of 3 retries, use 8 retries for this API which is polled every 5 seconds
322+
return (await this.createUserSdkClient(8)).getTransformationPlan(request).promise()
322323
}
323324

324325
public async startCodeFixJob(

0 commit comments

Comments
 (0)