make it once per hour

This commit is contained in:
Karol Wypchlo 2020-08-26 17:17:33 +02:00
parent 4eec295035
commit 062cc12a7d
1 changed files with 2 additions and 2 deletions

View File

@ -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)));