Skip to content

Commit

Permalink
[refactor] #118 청원상태 스케줄러 매일 정오에 실행되게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed Sep 26, 2024
1 parent 5a57f3a commit 2485014
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ public class PetitionPostProcessor {
private final PostCommentReader postCommentReader;
private final MemberManager memberManager;

// 매일 자정에 실행되는 스케줄러
// 매일 정오에 실행되는 스케줄러
// @Scheduled(cron = "0 0 0 * * *")
@Scheduled(fixedDelay = 300000)
// @Scheduled(fixedDelay = 300000)
@Scheduled(cron = "0 0 12 * * *")
@Transactional
public void scheduledStatusUpdate() {
List<Post> posts = postRepository.findAllByCategory(List.of("진행중"));
Expand Down

0 comments on commit 2485014

Please sign in to comment.