add certificate-notification job

pull/781/head
Louis Lam 3 years ago
parent d578300104
commit 957c292307

@ -6,7 +6,11 @@ const jobs = [
{
name: "clear-old-data",
interval: "at 03:14",
}
},
{
name: "certificate-notification",
interval: "60 seconds", // TODO: Production should be larger
},
];
const initBackgroundJobs = function (args) {

@ -0,0 +1,13 @@
const { log, exit, connectDb } = require("./util-worker");
const { R } = require("redbean-node");
const { setSetting, setting } = require("../util-server");
(async () => {
await connectDb();
console.log("Checking Certificate Expiry Date");
// TODO: Query monitor_tls_info
exit();
})();
Loading…
Cancel
Save