|
@@ -175,6 +175,9 @@ public class XxlJobService {
|
|
|
@Value("${sync.publish.content.thread.pool.size:5}")
|
|
|
private Integer syncPublishContentThreadPoolSize;
|
|
|
|
|
|
+ @Value("${preFilter.publish.content.thread.pool.size:4}")
|
|
|
+ private Integer preFilterPublishContentThreadPoolSize;
|
|
|
+
|
|
|
@XxlJob("checkPublishPlan")
|
|
|
public ReturnT<String> checkPublishPlan(String param) {
|
|
|
Long todayStart = DateUtils.getTodayStart();
|
|
@@ -1121,7 +1124,7 @@ public class XxlJobService {
|
|
|
public ReturnT<String> gzhWaitingPublishContentPreFilter(String param) {
|
|
|
List<PublishPlanAccountDTO> planAccountList = longArticleBaseMapper.getGroupPublishPlanAccounts();
|
|
|
ExecutorService thread = new CommonThreadPoolExecutor(
|
|
|
- syncPublishContentThreadPoolSize, syncPublishContentThreadPoolSize, 0L, TimeUnit.SECONDS,
|
|
|
+ preFilterPublishContentThreadPoolSize, preFilterPublishContentThreadPoolSize, 0L, TimeUnit.SECONDS,
|
|
|
new LinkedBlockingQueue<>(),
|
|
|
new ThreadFactoryBuilder().setNameFormat("ContentPreFilter-%d").build(),
|
|
|
new ThreadPoolExecutor.AbortPolicy());
|
|
@@ -1150,6 +1153,8 @@ public class XxlJobService {
|
|
|
BeanUtils.copyProperties(filterContent, saveItem);
|
|
|
filterContentList.add(saveItem);
|
|
|
}
|
|
|
+ log.info("ContentPreFilterJob success planId: {} accountId: {} filterContent: {}",
|
|
|
+ item.getPlanId(), item.getAccountId(), filterContentList.size());
|
|
|
recommendService.updateWaitingContentFilter(filterContentList);
|
|
|
}
|
|
|
} finally {
|