kakaoAtSendPrcs() 스케쥴 주석
This commit is contained in:
parent
2c1ab8bd99
commit
9823777d36
@ -64,7 +64,7 @@ public class SchedulerUtil {
|
||||
//10분마다 실행
|
||||
// @Scheduled(cron = "0 0/1 * * * *")
|
||||
//1분마다 실행
|
||||
@Scheduled(cron = "0 0/1 * * * *")
|
||||
// @Scheduled(cron = "0 0/1 * * * *")
|
||||
// @SchedulerLock(name = "kakaoAtSendPrcs", lockAtMostForString = ONE_MIN, lockAtLeastForString = ONE_MIN)
|
||||
public void kakaoAtSendPrcs() throws Exception {
|
||||
// System.out.println("===========at scheduler run============");
|
||||
@ -98,20 +98,20 @@ public class SchedulerUtil {
|
||||
if(hostAddr.equals(dmzIp1) || hostAddr.equals(containerIp) ) {
|
||||
//접속 서버 별 분기처리 필요
|
||||
|
||||
List<KakaoAtSendVO> list = kakaoAtSendService.selectKakaoAtList();
|
||||
// List<KakaoAtSendVO> list = kakaoAtSendService.selectKakaoAtList();
|
||||
//
|
||||
// int listSize = list.size();
|
||||
|
||||
int listSize = list.size();
|
||||
|
||||
for(int i=0; i<listSize ; i++) {
|
||||
|
||||
KakaoAtSendAPI kakaoAtSendAPI = KakaoAtSendAPI.getInstance();
|
||||
String status = kakaoAtSendAPI.sendMessage(list.get(i), isLocal, apiUrl);
|
||||
|
||||
if("success".equals(status)) {
|
||||
kakaoAtSendService.updateKakaoAtDetail(list.get(i));
|
||||
}
|
||||
|
||||
}
|
||||
// for(int i=0; i<listSize ; i++) {
|
||||
//
|
||||
// KakaoAtSendAPI kakaoAtSendAPI = KakaoAtSendAPI.getInstance();
|
||||
// String status = kakaoAtSendAPI.sendMessage(list.get(i), isLocal, apiUrl);
|
||||
//
|
||||
// if("success".equals(status)) {
|
||||
// kakaoAtSendService.updateKakaoAtDetail(list.get(i));
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user