Skip to content

Commit

Permalink
fix: [BE] running 서버 실행 옵션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HKLeeeee committed Dec 6, 2023
1 parent 10ab379 commit 4ff7544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backEnd/api/src/run/run.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion backEnd/running/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ RUN adduser deploy || true

USER deploy

CMD ["pm2-runtime", "dist/main.js", "-i", "1"]
CMD ["pm2-runtime", "dist/main.js", "-i", "max"]

0 comments on commit 4ff7544

Please sign in to comment.