스케쥴러 추가

This commit is contained in:
hylee 2024-03-22 12:11:21 +09:00
parent 39a3d37b28
commit 24d385773c
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class ScheduledTasks {
@Autowired
private MorakService morakService;
@Scheduled(cron = "*/10 * * * * MON-FRI")
@Scheduled(cron = "*/50 * * * * MON-FRI")
// @Scheduled(cron = "0 40 10 * * MON-FRI")
public void noonJob() throws IOException {
System.out.println("It's noon!");

View File

@ -54,7 +54,7 @@ public class MorakServiceImpl implements MorakService {
// true면 오늘 날짜가 맞음
System.out.println(" befor this.dateComparison(imgUrl) :: "+ this.dateComparison(imgUrl));
if (this.dateComparison(imgUrl)) {
// SlackUtil.sendMorakMenuToSlack(imgUrl);
SlackUtil.sendMorakMenuToSlack(imgUrl);
System.out.println("this.dateComparison(imgUrl) :: "+ this.dateComparison(imgUrl));
break;
} else {