明树Git Lab

Commit 3a362973 authored by zfp1's avatar zfp1

update

parent 42335372
...@@ -54,7 +54,7 @@ const cron = () => { ...@@ -54,7 +54,7 @@ const cron = () => {
if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) { if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) {
console.log("collectDeviceInfo1:", new Date()); console.log("collectDeviceInfo1:", new Date());
// 每10分钟 // 每10分钟
new nodeCron.schedule('40 */2 * * * *', async () => { new nodeCron.schedule('40 */5 * * * *', async () => {
await smcCron.collectDeviceInfo1({ deviceHQType: 1 }); await smcCron.collectDeviceInfo1({ deviceHQType: 1 });
}, { timezone: "Asia/Shanghai" }); }, { timezone: "Asia/Shanghai" });
} }
...@@ -63,7 +63,7 @@ const cron = () => { ...@@ -63,7 +63,7 @@ const cron = () => {
if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) { if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) {
console.log("collectDeviceInfo2:", new Date()); console.log("collectDeviceInfo2:", new Date());
new nodeCron.schedule('30 */2 * * * *', async () => { new nodeCron.schedule('30 */5 * * * *', async () => {
await smcCron.collectDeviceInfo1({ deviceHQType: 2 }); await smcCron.collectDeviceInfo1({ deviceHQType: 2 });
}, { timezone: "Asia/Shanghai" }); }, { timezone: "Asia/Shanghai" });
} }
...@@ -72,7 +72,7 @@ const cron = () => { ...@@ -72,7 +72,7 @@ const cron = () => {
if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) { if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) {
console.log("collectDeviceInfo3:", new Date()); console.log("collectDeviceInfo3:", new Date());
new nodeCron.schedule('50 */2 * * * *', async () => { new nodeCron.schedule('50 */5 * * * *', async () => {
await wsCron.collectDeviceInfo3({ deviceHQType: 3 }); await wsCron.collectDeviceInfo3({ deviceHQType: 3 });
}, { timezone: "Asia/Shanghai" }); }, { timezone: "Asia/Shanghai" });
} }
...@@ -82,7 +82,7 @@ const cron = () => { ...@@ -82,7 +82,7 @@ const cron = () => {
if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) { if (sysConfig && sysConfig.cron && sysConfig.cron.collectDeviceInfo) {
console.log("collectDeviceInfo4:", new Date()); console.log("collectDeviceInfo4:", new Date());
new nodeCron.schedule('1 */3 * * * *', async () => { new nodeCron.schedule('1 */5 * * * *', async () => {
await ipsCron.collectDeviceInfo4({deviceHQType: 4}); await ipsCron.collectDeviceInfo4({deviceHQType: 4});
}, { timezone: "Asia/Shanghai" }); }, { timezone: "Asia/Shanghai" });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment