From 3e192fc38de817c2635372d1134b0d0e6680cf21 Mon Sep 17 00:00:00 2001 From: luizy Date: Thu, 7 Dec 2023 14:49:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 컨테이너 삭제 실패는 서버에서 핸들링하지 않는다 [#265] --- packages/backend/src/containers/containers.service.ts | 5 +---- packages/backend/src/quizzes/quizzes.controller.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/containers/containers.service.ts b/packages/backend/src/containers/containers.service.ts index bbe4095..e247570 100644 --- a/packages/backend/src/containers/containers.service.ts +++ b/packages/backend/src/containers/containers.service.ts @@ -219,10 +219,7 @@ export class ContainersService { await this.commandService.executeCommand(command); this.logger.log('info', `container deleted : ${stdoutData.trim()}`); - - if (stderrData) { - throw new Error(stderrData); - } + this.logger.log('info', `container deleted error : ${stderrData.trim()}`); } private buildDockerCommand(container: string, ...commands: string[]): string { diff --git a/packages/backend/src/quizzes/quizzes.controller.ts b/packages/backend/src/quizzes/quizzes.controller.ts index 600c6bb..90141d9 100644 --- a/packages/backend/src/quizzes/quizzes.controller.ts +++ b/packages/backend/src/quizzes/quizzes.controller.ts @@ -264,7 +264,7 @@ export class QuizzesController { return; } - await this.containerService.deleteContainer(containerId); + this.containerService.deleteContainer(containerId); await this.sessionService.deleteCommandHistory(sessionId, id); } catch (e) {