Revamp Job flow

This commit is contained in:
Elijah Dunemask 2022-10-15 11:47:47 +00:00
parent 945afdfbbe
commit 4a0a4b29a5
86 changed files with 592 additions and 608 deletions

13
lib/server/core/crons.js Normal file
View file

@ -0,0 +1,13 @@
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();
}