Merge branch 'bo_sms-auto-send' into 'dev'

[배치] dev 환경에서만 배치 돌도록 수정 + 스케줄 시간 원복

See merge request korea-research/korea-research!139
This commit is contained in:
이강선 매니저/ST
2025-07-22 00:26:36 +00:00

View File

@@ -35,9 +35,13 @@ public class AutoSchedulesController {
* 월별입력상태 등록 * 월별입력상태 등록
* 매 월 1일 0초 마다 실행되는 스케줄러 * 매 월 1일 0초 마다 실행되는 스케줄러
*/ */
//@Scheduled(cron = "0 0 0 1 * *") @Scheduled(cron = "0 0 0 1 * *")
@Scheduled(cron = "0 0 * * * *")
public void fetchMonthlyStatus() { public void fetchMonthlyStatus() {
if ("dev".equals(activeProfiles)) {
log.info("fetchMonthlyStatus 는 dev 환경에서만 실행됩니다. (현재: {})", activeProfiles);
return;
}
String lockKey = "fetchMonthlyStatus_" + java.time.LocalDate.now(); String lockKey = "fetchMonthlyStatus_" + java.time.LocalDate.now();
try { try {
String host = java.net.InetAddress.getLocalHost().getHostName(); String host = java.net.InetAddress.getLocalHost().getHostName();
@@ -106,9 +110,13 @@ public class AutoSchedulesController {
* 월초이월금 계산하여 등록 * 월초이월금 계산하여 등록
* 매월 16일 0시 0초에 실행되는 스케줄러 * 매월 16일 0시 0초에 실행되는 스케줄러
*/ */
// @Scheduled(cron = "0 0 0 16 * *") @Scheduled(cron = "0 0 0 16 * *")
@Scheduled(cron = "0 0 * * * *")
public void fetchMonthlyCarryOver() { public void fetchMonthlyCarryOver() {
if ("dev".equals(activeProfiles)) {
log.info("fetchMonthlyCarryOver 는 dev 환경에서만 실행됩니다. (현재: {})", activeProfiles);
return;
}
String lockKey = "fetchMonthlyCarryOver_" + java.time.LocalDate.now(); String lockKey = "fetchMonthlyCarryOver_" + java.time.LocalDate.now();
try { try {
String host = java.net.InetAddress.getLocalHost().getHostName(); String host = java.net.InetAddress.getLocalHost().getHostName();