qualiteer/lib/core/crons.js

14 lines
305 B
JavaScript
Raw Normal View History

2022-05-05 20:30:24 +00:00
import cron from "cron";
const { CronJob } = cron;
// Remove Expired Silenced Tests
const expiredSilenced = () => {
console.log("Would Update Silenced Tests");
};
const silencedCron = new CronJob("* * * * * *", expiredSilenced);
export default async function startCrons() {
silencedCron.start();
}