Skip to content

Commit

Permalink
refactor: 선착순 이벤트 스케쥴링 주기 30초 -> 1초로 수정
Browse files Browse the repository at this point in the history
[=]
  • Loading branch information
starwook committed Aug 24, 2024
1 parent 231fd3b commit 14fef36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion order/src/main/java/com/watermelon/server/Scheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Scheduler {

private final OrderEventSchedulingService orderEventSchedulingService;
private final CurrentOrderEventManageService currentOrderEventManageService;
@Scheduled(fixedRate = 300000)
@Scheduled(fixedRate = 1000)
public void checkOrderEvent(){
Long currentEventId = currentOrderEventManageService.getCurrentOrderEventId();
orderEventSchedulingService.changeOrderStatusByTime();
Expand Down

0 comments on commit 14fef36

Please sign in to comment.