File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
packages/core/src/codewhisperer Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -736,6 +736,7 @@ export async function postTransformationJob() {
736
736
export async function transformationJobErrorHandler ( error : any ) {
737
737
if ( ! transformByQState . isCancelled ( ) ) {
738
738
// means some other error occurred; cancellation already handled by now with stopTransformByQ
739
+ await stopJob ( transformByQState . getJobId ( ) )
739
740
transformByQState . setToFailed ( )
740
741
transformByQState . setPolledJobStatus ( 'FAILED' )
741
742
// jobFailureErrorNotification should always be defined here
Original file line number Diff line number Diff line change @@ -185,6 +185,8 @@ export async function stopJob(jobId: string) {
185
185
return
186
186
}
187
187
188
+ getLogger ( ) . info ( `CodeTransformation: Stopping transformation job with ID: ${ jobId } ` )
189
+
188
190
try {
189
191
await codeWhisperer . codeWhispererClient . codeModernizerStopCodeTransformation ( {
190
192
transformationJobId : jobId ,
You can’t perform that action at this time.
0 commit comments