Skip to content

Commit

Permalink
fix (#1) : scheduled delay of 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
eojinny committed Nov 14, 2023
1 parent 2847cda commit 182f7e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MorphemeController {
private final NewsAPIService newsAPIService;
private final MorphemeService morphemeService;
//@GetMapping("/analysis/{msg}")
@Scheduled(cron = "* * * * * 2" , fixedDelay = 30000)
@Scheduled(fixedDelay = 30000)
public String analysis() throws JsonProcessingException {
String newsList1 = newsAPIService.naverAPI("주 69시간 근로시간 제도 개편");
String newsList2 = newsAPIService.naverAPI("이태원 참사");
Expand Down

0 comments on commit 182f7e5

Please sign in to comment.