스케쥴러 추가
This commit is contained in:
parent
39a3d37b28
commit
24d385773c
@ -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!");
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user