Revamp Job flow
This commit is contained in:
parent
945afdfbbe
commit
4a0a4b29a5
86 changed files with 592 additions and 608 deletions
13
lib/server/core/crons.js
Normal file
13
lib/server/core/crons.js
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue