From 4ff75446b11837487fb397ef5fbcf46963ac7033 Mon Sep 17 00:00:00 2001 From: HKLeeeee Date: Thu, 7 Dec 2023 00:11:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[BE]=20running=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=20=EC=98=B5=EC=85=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backEnd/api/src/run/run.gateway.ts | 6 +++--- backEnd/running/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backEnd/api/src/run/run.gateway.ts b/backEnd/api/src/run/run.gateway.ts index a11d858..57a31b4 100644 --- a/backEnd/api/src/run/run.gateway.ts +++ b/backEnd/api/src/run/run.gateway.ts @@ -66,7 +66,7 @@ export class RunGateway implements OnGatewayConnection { result.result, result.message, ); - socket.emit(SOCKET_EVENT.DONE, response); + socket.emit(SOCKET_EVENT.DONE, response.statusCode); }); } @@ -92,9 +92,9 @@ export class RunGateway implements OnGatewayConnection { this.connectedSockets.delete(socket.id); } - @Cron(CronExpression.EVERY_MINUTE) + @Cron(CronExpression.EVERY_5_MINUTES) handleNotCompleteSocket() { - const Before10S = Date.now() - 10000; + const Before10S = Date.now() - 20000; this.connectedSockets.forEach((value, key) => { const { socket, createTime } = value; if (createTime < Before10S) this.connectedSockets.delete(key); diff --git a/backEnd/running/Dockerfile b/backEnd/running/Dockerfile index 4c46170..5dd2d20 100644 --- a/backEnd/running/Dockerfile +++ b/backEnd/running/Dockerfile @@ -30,4 +30,4 @@ RUN adduser deploy || true USER deploy -CMD ["pm2-runtime", "dist/main.js", "-i", "1"] \ No newline at end of file +CMD ["pm2-runtime", "dist/main.js", "-i", "max"] \ No newline at end of file