Skip to content

Commit

Permalink
✨ ec2이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed Jul 6, 2024
1 parent f0c1716 commit c6ad34b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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()){
Expand Down

0 comments on commit c6ad34b

Please sign in to comment.