Skip to content

Commit

Permalink
fix: 스케줄러 처리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ny2060 committed Jun 11, 2024
1 parent 366c872 commit 7ba781b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@RequiredArgsConstructor
Expand All @@ -23,7 +24,8 @@ public void resetNotifiedFlags() {
exchangeService.resetNotifiedFlags();
}

@Scheduled(cron = "0 * * * * *")
// @Scheduled(cron = "* * * * * *")
@Transactional
public void run() throws Exception {
JobParameters parameters = new JobParametersBuilder()
.addString("jobName","exchangeJob"+System.currentTimeMillis())
Expand Down

0 comments on commit 7ba781b

Please sign in to comment.