From 2950c02d643e9b45e47ca6493188ca82828ffece Mon Sep 17 00:00:00 2001 From: filesite Date: Wed, 22 May 2024 07:21:58 +0800 Subject: [PATCH] log change --- spider.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spider.mjs b/spider.mjs index 43e331b..18fcfdc 100644 --- a/spider.mjs +++ b/spider.mjs @@ -65,7 +65,7 @@ import path from 'node:path'; //随机延迟一段时间,将不同爬虫的执行时间错开 let rnd_secods = parseInt(Math.random() * task_check_time); - console.log("Sleep %s seconds...", rnd_secods); + console.log("Sleep %s seconds before crap...", rnd_secods); await common.delay(rnd_secods); @@ -164,7 +164,7 @@ import path from 'node:path'; const heroUnionHeartBeat = cron.schedule(`*/${heartBeatFrequence} * * * *`, async () => { //随机延迟一段时间,将不同爬虫的执行时间错开 let rnd_secods = parseInt(Math.random() * 60); - console.log("Sleep %s seconds...", rnd_secods); + console.log("Sleep %s seconds before send heart beat...", rnd_secods); await common.delay(rnd_secods); let status = spider_is_running ? 'busy' : 'idle';