Skip to content

Commit

Permalink
Merge pull request #116 from Orange-Co/feature/scheduler
Browse files Browse the repository at this point in the history
chore: update scheduling time
  • Loading branch information
Kang1221 authored Oct 8, 2024
2 parents a73f535 + 0d52363 commit cd91f94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/co/orange/ddanzi/service/SchedulerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ public void updateExpiredItems() {
/**
* 1시간마다 실행
* */
@Scheduled(fixedRate = 60000)
@Scheduled(fixedRate = 120000)
public void scheduleCheckOrderPlacedOrder() {
log.info("입금 후 1일(24시간)이 지났는데, 판매확정이 되지 않은 주문 확인");
orderService.checkOrderPlacedOrder();
}

@Scheduled(fixedRate = 60000)
@Scheduled(fixedRate = 120000)
public void scheduleCheckShippingOrder() {
log.info("판매확정 후 3일 (72시간)이 지났는데, 구매확정이 되지 않은 주문 확인");
orderService.checkShippingOrder();
}

@Scheduled(fixedRate = 60000)
@Scheduled(fixedRate = 120000)
public void scheduleCheckDelayedShippingOrder() {
log.info("판매확정 후 6일 (144시간)이 지났는데, 구매확정이 되지 않았고, 신고도 하지 않은 주문 확인");
orderService.checkDelayedShippingOrder();
}

@Scheduled(fixedRate = 60000)
@Scheduled(fixedRate = 120000)
public void scheduleCheckWarningOrder() {
log.info("판매확정 후 7일 (168시간)이 지났는데, 구매확정이 되지 않았고, 신고도 하지 않은 주문 확인");
orderService.checkWarningOrder();
Expand Down

0 comments on commit cd91f94

Please sign in to comment.