make it once per hour
This commit is contained in:
parent
4eec295035
commit
062cc12a7d
|
@ -12,8 +12,8 @@ const basicJob = schedule.scheduleJob("*/5 * * * *", async () => {
|
||||||
db.get("entries").push(entry).write();
|
db.get("entries").push(entry).write();
|
||||||
});
|
});
|
||||||
|
|
||||||
// execute the verbose health-check script once a day at 3am
|
// execute the verbose health-check script once per hour
|
||||||
const verboseJob = schedule.scheduleJob("*/5 * * * *", async () => {
|
const verboseJob = schedule.scheduleJob("0 * * * *", async () => {
|
||||||
const entry = { date: new Date().toISOString(), checks: [] };
|
const entry = { date: new Date().toISOString(), checks: [] };
|
||||||
|
|
||||||
entry.checks = await Promise.all(verboseChecks.map((check) => new Promise(check)));
|
entry.checks = await Promise.all(verboseChecks.map((check) => new Promise(check)));
|
||||||
|
|
Reference in New Issue