zhaoyingbo a4555ac862
All checks were successful
CI Monitor CI/CD / build-image (push) Successful in 29s
CI Monitor CI/CD / deploy (push) Successful in 30s
feat: 接入eslint
2024-07-24 10:56:26 +00:00

15 lines
431 B
TypeScript

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