Skip to content

Commit 060b0a0

Browse files
dhasani23David Hasani
andauthored
fix(amazonq): increase maxRetries for GetPlan (#6298)
## Problem We previously increased the maxRetries for GetTransformationJob from 3 to 8 since it's polled every 5 seconds; we should do the same for GetTransformationPlan since it too is polled every 5 seconds. ## Solution Increase maxRetries from 3 to 8. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: David Hasani <[email protected]>
1 parent 653b849 commit 060b0a0

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)