Skip to content

Commit 27a9b27

Browse files
committed
refactor(recruit-board): 스케쥴러 retryable 리팩토링
- 최대 시도, 주기 명시적으로 변경
1 parent a28c714 commit 27a9b27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/somemore/domains/recruitboard/scheduler/RecruitBoardStatusUpdateScheduler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ public class RecruitBoardStatusUpdateScheduler {
2121

2222
@Retryable(
2323
retryFor = Exception.class,
24-
backoff = @Backoff(delay = 100000)
24+
maxAttempts = 3,
25+
backoff = @Backoff(delay = 2000)
2526
)
2627
@Scheduled(cron = "0 0 0 * * ?")
2728
public void updateRecruitBoardStatusToClosed() {
@@ -37,7 +38,8 @@ public void updateRecruitBoardStatusToClosed() {
3738

3839
@Retryable(
3940
retryFor = Exception.class,
40-
backoff = @Backoff(delay = 100000)
41+
maxAttempts = 3,
42+
backoff = @Backoff(delay = 2000)
4143
)
4244
@Scheduled(cron = "0 0 0 * * ?")
4345
public void updateRecruitBoardStatusToCompleted() {

0 commit comments

Comments
 (0)