We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0516c3 + de234f1 commit f4b8693Copy full SHA for f4b8693
src/main/java/com/blockguard/server/domain/news/scheduler/NewsSaveScheduler.java
@@ -4,6 +4,7 @@
4
import com.blockguard.server.infra.crawler.DaumNewsCrawler;
5
import lombok.RequiredArgsConstructor;
6
import lombok.extern.slf4j.Slf4j;
7
+import org.springframework.scheduling.annotation.Async;
8
import org.springframework.scheduling.annotation.Scheduled;
9
import org.springframework.stereotype.Component;
10
@@ -34,11 +35,12 @@ public class NewsSaveScheduler {
34
35
Map.entry(Category.ETC, List.of("몸캠"))
36
);
37
-
38
+ @Async
39
public void crawlingForAdmin() {
40
crawlAll();
41
}
42
43
44
// @Scheduled(cron = "0 0 4 * * *")
45
public void saveNewsArticles() {
46
0 commit comments