|
@@ -29,7 +29,7 @@ public class KuaishouHourlyAccountReportLoadJob implements Job {
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
|
|
|
|
- static ExecutorService executorService = null;
|
|
|
|
|
|
+ static ExecutorService executorService = Executors.newFixedThreadPool(8);
|
|
//线程计数器
|
|
//线程计数器
|
|
static CountDownLatch countDownLatch = null;
|
|
static CountDownLatch countDownLatch = null;
|
|
|
|
|
|
@@ -50,7 +50,6 @@ public class KuaishouHourlyAccountReportLoadJob implements Job {
|
|
log.info("定时获取快手数据异常:未获取到可用的token");
|
|
log.info("定时获取快手数据异常:未获取到可用的token");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- executorService = Executors.newFixedThreadPool(5);
|
|
|
|
countDownLatch = new CountDownLatch(tokens.size());
|
|
countDownLatch = new CountDownLatch(tokens.size());
|
|
Date finalGetDate = getDate;
|
|
Date finalGetDate = getDate;
|
|
tokens.forEach(token -> {
|
|
tokens.forEach(token -> {
|