Skip to content

Commit

Permalink
Merge master into feature/stepfunctions-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-toolkit-automation authored Feb 7, 2025
2 parents b832cb8 + 67f053c commit 9f53cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/amazonqGumby/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class AlternateDependencyVersionsNotFoundError extends Error {
}

export class JobStoppedError extends Error {
constructor(readonly requestId: string) {
constructor() {
super('Job was rejected, stopped, or failed')
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,7 @@ export async function pollTransformationJob(jobId: string, validStates: string[]
* is called, we break above on validStatesForCheckingDownloadUrl and check final status in finalizeTransformationJob
*/
if (CodeWhispererConstants.failureStates.includes(status)) {
throw new JobStoppedError(
response.transformationJob.reason ?? 'no failure reason in GetTransformation response'
)
throw new JobStoppedError()
}
await sleep(CodeWhispererConstants.transformationJobPollingIntervalSeconds * 1000)
} catch (e: any) {
Expand Down

0 comments on commit 9f53cb2

Please sign in to comment.