Skip to content

Commit

Permalink
Merge pull request #185 from kookmin-sw/backend/develop/v3
Browse files Browse the repository at this point in the history
✨ ec2이름 변경
  • Loading branch information
J-Yong99 authored Jul 6, 2024
2 parents 1601b78 + c6ad34b commit 153fdbd
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 153fdbd

Please sign in to comment.