瀏覽代碼

修改线程数

yumeng 5 年之前
父節點
當前提交
61c95df3fe

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/BytedancePlanRealTimeLoadJob.java

@@ -35,7 +35,7 @@ public class BytedancePlanRealTimeLoadJob implements Job {
             public void run() {
             public void run() {
                 //1:查询当日数据
                 //1:查询当日数据
                 List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_BYTEDANCE);
                 List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_BYTEDANCE);
-                executorService = Executors.newFixedThreadPool(8);
+                executorService = Executors.newFixedThreadPool(4);
                 String nowDate = DateUtils.date2Str();
                 String nowDate = DateUtils.date2Str();
                 tokens.forEach(token -> {
                 tokens.forEach(token -> {
                     executorService.submit(new Runnable() {
                     executorService.submit(new Runnable() {