904118851 2 달 전
부모
커밋
5dc2817288

+ 2 - 2
2_PRODUCT_FACTORY/fq_factory.js

@@ -15,7 +15,7 @@ const mysql = require('mysql2/promise');
 const dbConfig = config.isDebug?config.debug_mysql:config.release_mysql
 const taskdbConfig = config.isDebug?config.debug_task_mysql:config.release_task_mysql
 
-const time_count = 2000;
+const time_count = 3000;
 const task_queue = []
 
 async function processTask(){
@@ -175,7 +175,7 @@ async function processNewCreateTask(){
         if(connection!=null){
             connection.end()
         }
-        global.setTimeout(processNewCreateTask, 500);
+        global.setTimeout(processNewCreateTask, time_count);
     }
 }
 

+ 2 - 2
2_PRODUCT_FACTORY/fq_factory2.js

@@ -15,7 +15,7 @@ const mysql = require('mysql2/promise');
 const dbConfig = config.isDebug?config.debug_mysql:config.release_mysql
 const taskdbConfig = config.isDebug?config.debug_task_mysql:config.release_task_mysql
 
-const time_count = 2000;
+const time_count = 1000;
 const task_queue = []
 
 async function processNewCreateTask(){
@@ -115,7 +115,7 @@ async function processNewCreateTask(){
         if(connection!=null){
             connection.end()
         }
-        global.setTimeout(processNewCreateTask, 500);
+        global.setTimeout(processNewCreateTask, time_count);
     }
 }
 

+ 1 - 1
2_PRODUCT_FACTORY/fq_factory3.js

@@ -124,7 +124,7 @@ async function processNewCreateTask(){
         if(connection!=null){
             await connection.end()
         }
-        global.setTimeout(processNewCreateTask, 500);
+        global.setTimeout(processNewCreateTask, time_count);
     }
 }
 

+ 2 - 2
2_PRODUCT_FACTORY/fq_factory4.js

@@ -15,7 +15,7 @@ const mysql = require('mysql2/promise');
 const dbConfig = config.isDebug?config.debug_mysql:config.release_mysql
 const taskdbConfig = config.isDebug?config.debug_task_mysql:config.release_task_mysql
 
-const time_count = 2000;
+const time_count = 2500;
 const task_queue = []
 
 async function processNewCreateTask(){
@@ -124,7 +124,7 @@ async function processNewCreateTask(){
         if(connection!=null){
             await connection.end()
         }
-        global.setTimeout(processNewCreateTask, 500);
+        global.setTimeout(processNewCreateTask, time_count);
     }
 }
 

+ 1 - 1
5_CREATE_LINK_FACTORY/zh_create_link_factory.js

@@ -1,5 +1,5 @@
 const CMD = {}
-const time_count = 500;
+const time_count = 1000;
 const redis_help = require('../src/use_redis');
 const video_applet_product_controllers = require('../src/data_manager/Controllers/video_applet_product_controllers');
 var zh_create_link_task_list = []

+ 2 - 3
QM_SCRIPT/find_have_350_book.js

@@ -241,9 +241,8 @@ CMD.updateAllFqMfBookCheckStatus = async function(){
 CMD.init = async function(){
     redis_help.connect(async (results)=>{
         if(results){
-            await CMD.updateAllFqMfBookCheckStatus()
-            processTask();
-            const job = schedule.scheduleJob('0 17 * * *', function() {
+            const job = schedule.scheduleJob('0 17 * * *', async function() {
+                await CMD.updateAllFqMfBookCheckStatus()
                 console.log('整点执行的任务:', new Date().toLocaleString());
                 processTask();
             });