Skip to content

Commit

Permalink
chore: 스케줄러 1시간 단위로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Nov 10, 2024
1 parent e2ccf05 commit 85f6e6d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class RetrospectScheduler {
/**
* @note: 1시간마다 실행된다.
*/
@Scheduled(cron = "0 0/2 * * * *")
@Scheduled(cron = "0 0 * * * *")
public void updateRetrospectStatusToDone() {
log.info("Batch Start : updateRetrospectStatusToDone");

Expand All @@ -41,8 +41,6 @@ public void updateRetrospectStatusToDone() {
List<Retrospect> retrospects = retrospectRepository.findAllByDeadlineBeforeAndRetrospectStatus(
now, RetrospectStatus.PROCEEDING);

log.info("batch: size of retrospects: {}", retrospects.size());
log.info("now: {}", now);

Map<Long, Retrospect> retrospectMap = retrospects.stream()
.collect(Collectors.toMap(Retrospect::getId, retrospect -> retrospect));
Expand Down

0 comments on commit 85f6e6d

Please sign in to comment.