From f01591a1ee73033d06990f6697da397eef85085c Mon Sep 17 00:00:00 2001 From: mjh000526 Date: Tue, 3 Dec 2024 23:22:38 +0900 Subject: [PATCH] feat(#151): multiple IO version --- apps/backend/src/docker/docker.consumer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/docker/docker.consumer.ts b/apps/backend/src/docker/docker.consumer.ts index 076c80e..842d331 100644 --- a/apps/backend/src/docker/docker.consumer.ts +++ b/apps/backend/src/docker/docker.consumer.ts @@ -78,6 +78,7 @@ export class DockerConsumer { console.log(`${c}번째 프로세스 시작`); container = await this.dockerContainerPool.pool[0]; const containerInfo = await container.inspect(); + await this.initWorkDir(container, c); const result = await this.runGistFiles(container, gitToken, gistId, commitId, mainFileName, inputs, c); await this.cleanWorkDir(container, c); console.log(`${c}번째 프로세스 종료`); @@ -101,7 +102,6 @@ export class DockerConsumer { if (!files || !files.some((file) => file.fileName === mainFileName)) { throw new HttpException('execFile is not found', HttpStatus.NOT_FOUND); } - await this.initWorkDir(container, dirId); //desciption: 컨테이너 시작 const tarBuffer = await this.parseTarBuffer(files);