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

fix(amazonq): increase maxRetries for GetPlan #6298

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(amazonq): increase maxRetries for GetPlan
  • Loading branch information
David Hasani committed Dec 31, 2024
commit 930168f908bd95a5f04dbaa3c54836c0e667c764
3 changes: 2 additions & 1 deletion packages/core/src/codewhisperer/client/codewhisperer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ export class DefaultCodeWhispererClient {
public async codeModernizerGetCodeTransformationPlan(
request: CodeWhispererUserClient.GetTransformationPlanRequest
): Promise<PromiseResult<CodeWhispererUserClient.GetTransformationPlanResponse, AWSError>> {
return (await this.createUserSdkClient()).getTransformationPlan(request).promise()
// instead of the default of 3 retries, use 8 retries for this API which is polled every 5 seconds
return (await this.createUserSdkClient(8)).getTransformationPlan(request).promise()
}

public async startCodeFixJob(
Expand Down
Loading