Skip to content

Commit 12c3c82

Browse files
committed
fix: 신청 실패 로그 Duration 48시간으로 증가
1 parent c0fea09 commit 12c3c82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/life/mosu/mosuserver/application/application/cron/ApplicationFailureLogDomainArchiveExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@RequiredArgsConstructor
2323
public class ApplicationFailureLogDomainArchiveExecutor implements DomainArchiveExecutor {
2424

25-
private final static Duration DURATION_HOURS_STANDARD = Duration.ofHours(1);
25+
private final static Duration DURATION_HOURS_STANDARD = Duration.ofHours(48);
2626
private final static int BATCH_SIZE = 500;
2727

2828
private final ApplicationFailureLogFactory applicationFailureLogFactory;
@@ -63,7 +63,7 @@ public String getName() {
6363
}
6464

6565
private List<ApplicationJpaEntity> findFailedApplications() {
66-
Instant threshold = Instant.now().minus(DURATION_HOURS_STANDARD); // 3 hours ago
66+
Instant threshold = Instant.now().minus(DURATION_HOURS_STANDARD);
6767
LocalDateTime time = LocalDateTime.ofInstant(threshold, ZoneId.systemDefault());
6868
return applicationJpaRepository.findFailedApplications(time);
6969
}

0 commit comments

Comments
 (0)