[TEST] 배치 실행 테스트
This commit is contained in:
@@ -41,7 +41,17 @@ public class AutoSchedulesController {
|
|||||||
//@Scheduled(cron = "1 0 0 16 * *")
|
//@Scheduled(cron = "1 0 0 16 * *")
|
||||||
@Scheduled(cron = "0 * 11,12 * * *")
|
@Scheduled(cron = "0 * 11,12 * * *")
|
||||||
public void fetchMonthlyCarryOver() {
|
public void fetchMonthlyCarryOver() {
|
||||||
portIn.monthlyCarryOver();
|
try {
|
||||||
|
|
||||||
|
String host = java.net.InetAddress.getLocalHost().getHostName();
|
||||||
|
|
||||||
|
log.info("스케줄 실행: {} / {} / {} / {}", host, this, + System.identityHashCode(this), Thread.currentThread().getName());
|
||||||
|
|
||||||
|
portIn.monthlyCarryOver();
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(cron = "0 * 11,12 * * *")
|
@Scheduled(cron = "0 * 11,12 * * *")
|
||||||
|
|||||||
Reference in New Issue
Block a user