From 275160f3ae16fa5b3546be9cca336a77876ababc Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 9 Aug 2024 02:05:03 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schedule/index.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/schedule/index.ts b/schedule/index.ts index 25cb4e6..ac5e990 100644 --- a/schedule/index.ts +++ b/schedule/index.ts @@ -1,7 +1,6 @@ import { scheduleJob } from "node-schedule" import manageRobot from "../controllers/manageRobot" -import monitorJob from "./monitorJob" import syncPipeLine from "./syncPipeLine" const initSchedule = async () => { @@ -9,12 +8,12 @@ const initSchedule = async () => { scheduleJob("0 10 * * 5", manageRobot.sendCIReportByCron) // 每15分钟同步一次CI数据 scheduleJob("*/15 * * * *", syncPipeLine) - // 每30秒执行一次监控任务 - scheduleJob("*30 * * * * *", monitorJob) + // // 每30秒执行一次监控任务 + // scheduleJob("*30 * * * * *", monitorJob) // 立即同步一次 syncPipeLine() - // 立即执行一次监控任务 - monitorJob() + // // 立即执行一次监控任务 + // monitorJob() } export default initSchedule