zhaoyingbo 275160f3ae
All checks were successful
CI Monitor MIflow / build-image (push) Successful in 44s
feat: 移除监控任务
2024-08-09 02:05:03 +00:00

20 lines
573 B
TypeScript

import { scheduleJob } from "node-schedule"
import manageRobot from "../controllers/manageRobot"
import syncPipeLine from "./syncPipeLine"
const initSchedule = async () => {
// 每周五早上10点发送CI报告
scheduleJob("0 10 * * 5", manageRobot.sendCIReportByCron)
// 每15分钟同步一次CI数据
scheduleJob("*/15 * * * *", syncPipeLine)
// // 每30秒执行一次监控任务
// scheduleJob("*30 * * * * *", monitorJob)
// 立即同步一次
syncPipeLine()
// // 立即执行一次监控任务
// monitorJob()
}
export default initSchedule