Merge branch 'bo_sms-auto-send' into 'dev'
[배치] dev 환경에서만 배치 돌도록 수정 + 스케줄 시간 원복 See merge request korea-research/korea-research!139
This commit is contained in:
@@ -35,9 +35,13 @@ public class AutoSchedulesController {
|
||||
* 월별입력상태 등록
|
||||
* 매 월 1일 0초 마다 실행되는 스케줄러
|
||||
*/
|
||||
//@Scheduled(cron = "0 0 0 1 * *")
|
||||
@Scheduled(cron = "0 0 * * * *")
|
||||
@Scheduled(cron = "0 0 0 1 * *")
|
||||
public void fetchMonthlyStatus() {
|
||||
if ("dev".equals(activeProfiles)) {
|
||||
log.info("fetchMonthlyStatus 는 dev 환경에서만 실행됩니다. (현재: {})", activeProfiles);
|
||||
return;
|
||||
}
|
||||
|
||||
String lockKey = "fetchMonthlyStatus_" + java.time.LocalDate.now();
|
||||
try {
|
||||
String host = java.net.InetAddress.getLocalHost().getHostName();
|
||||
@@ -106,9 +110,13 @@ public class AutoSchedulesController {
|
||||
* 월초이월금 계산하여 등록
|
||||
* 매월 16일 0시 0초에 실행되는 스케줄러
|
||||
*/
|
||||
// @Scheduled(cron = "0 0 0 16 * *")
|
||||
@Scheduled(cron = "0 0 * * * *")
|
||||
@Scheduled(cron = "0 0 0 16 * *")
|
||||
public void fetchMonthlyCarryOver() {
|
||||
if ("dev".equals(activeProfiles)) {
|
||||
log.info("fetchMonthlyCarryOver 는 dev 환경에서만 실행됩니다. (현재: {})", activeProfiles);
|
||||
return;
|
||||
}
|
||||
|
||||
String lockKey = "fetchMonthlyCarryOver_" + java.time.LocalDate.now();
|
||||
try {
|
||||
String host = java.net.InetAddress.getLocalHost().getHostName();
|
||||
|
||||
Reference in New Issue
Block a user