From c6ad34b63c13f26aa42504d1fc707a2c7f7a5ada Mon Sep 17 00:00:00 2001 From: j-yong99 Date: Sat, 6 Jul 2024 15:49:56 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20ec2=EC=9D=B4=EB=A6=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/moment/scheduler/service/CardViewService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java b/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java index 06abb03b7e..c6f4ec8eb8 100644 --- a/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java +++ b/backend/moment/moment-server/scheduler/src/main/java/com/moment/scheduler/service/CardViewService.java @@ -41,7 +41,7 @@ public SchedulerResponseDTO.AIModelRunResponseDTO getIncompleteCardViews() throw if (awsService.isEc2Running()){ throw new RuntimeException("EC2 is already running"); } - awsService.turnOnOrOff("moment-ai-t4", true); + awsService.turnOnOrOff("moment", true); log.info("EC2 trying to turn on"); while (!awsService.isEc2Running()){ log.info("sleep"); @@ -115,7 +115,7 @@ public SchedulerResponseDTO.AIModelRunResponseDTO getIncompleteCardViews() throw } long endTime = System.currentTimeMillis(); log.info("AI model run time : " + (endTime - startTime) + "ms"); - awsService.turnOnOrOff("moment-ai-t4", false); + awsService.turnOnOrOff("moment", false); // 분석한만큼 유저에게 알림을 전송 for (User user : userCardViewCount.keySet()){