Authored by Gino Zhang

修改conversion相关定时任务的执行时间

@@ -75,7 +75,7 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware { @@ -75,7 +75,7 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware {
75 logger.info("indexRebuildJob rebuildSuggestIndex end----[cost={}]", System.currentTimeMillis() - begin); 75 logger.info("indexRebuildJob rebuildSuggestIndex end----[cost={}]", System.currentTimeMillis() - begin);
76 } 76 }
77 77
78 - @Scheduled(cron = "0 30 5 * * ?") 78 + @Scheduled(cron = "0 45 4 * * ?")
79 public void rebuildConversionIndex() { 79 public void rebuildConversionIndex() {
80 // conversion索引由于需要suggestConvertorJob的执行 因此单独放在5点半重建 80 // conversion索引由于需要suggestConvertorJob的执行 因此单独放在5点半重建
81 long begin = System.currentTimeMillis(); 81 long begin = System.currentTimeMillis();
@@ -37,7 +37,7 @@ public class SuggestionCounterJob implements ApplicationContextAware { @@ -37,7 +37,7 @@ public class SuggestionCounterJob implements ApplicationContextAware {
37 .collect(Collectors.toList()); 37 .collect(Collectors.toList());
38 } 38 }
39 39
40 - @Scheduled(cron = "0 30 3 * * ?") 40 + @Scheduled(cron = "0 40 3 * * ?")
41 public void execute() { 41 public void execute() {
42 long begin = System.currentTimeMillis(); 42 long begin = System.currentTimeMillis();
43 logger.info("SuggestionCounterJob execute start----[begin={}]", begin); 43 logger.info("SuggestionCounterJob execute start----[begin={}]", begin);
@@ -57,7 +57,7 @@ public class SpiderJob { @@ -57,7 +57,7 @@ public class SpiderJob {
57 } 57 }
58 } 58 }
59 59
60 - @Scheduled(cron = "0 15 5 * * ?") 60 + @Scheduled(cron = "0 35 4 * * ?")
61 public void convertSpiderContents() { 61 public void convertSpiderContents() {
62 // 将爬虫内容转换为关键词转换关系 需要依赖SuggestionCounter执行后再执行 62 // 将爬虫内容转换为关键词转换关系 需要依赖SuggestionCounter执行后再执行
63 if (!dynamicConfigService.isIncreasementSpiderOpen()) { 63 if (!dynamicConfigService.isIncreasementSpiderOpen()) {
@@ -72,7 +72,7 @@ public class SpiderJob { @@ -72,7 +72,7 @@ public class SpiderJob {
72 public void updateSuggestConversion() { 72 public void updateSuggestConversion() {
73 // 执行全量的提取关系刷新 73 // 执行全量的提取关系刷新
74 long begin = System.currentTimeMillis(); 74 long begin = System.currentTimeMillis();
75 - LOGGER.info("[func=convertSpiderContents.start][begin={}]", begin); 75 + LOGGER.info("[func=updateSuggestConversion.start][begin={}]", begin);
76 if (!dynamicConfigService.isIncreasementSpiderOpen()) { 76 if (!dynamicConfigService.isIncreasementSpiderOpen()) {
77 LOGGER.warn("[func=updateSuggestConversion.end][message=inceasement spider is closed]"); 77 LOGGER.warn("[func=updateSuggestConversion.end][message=inceasement spider is closed]");
78 return; 78 return;