Skip to content

Commit 930168f

Browse files
author
David Hasani
committed
fix(amazonq): increase maxRetries for GetPlan
1 parent 5ef59ca commit 930168f

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)