From 062cc12a7d2cbfd3e70d211a2523dc9201872447 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 26 Aug 2020 17:17:33 +0200 Subject: [PATCH] make it once per hour --- packages/health-check/src/schedule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/health-check/src/schedule.js b/packages/health-check/src/schedule.js index 37da470d..252f2518 100644 --- a/packages/health-check/src/schedule.js +++ b/packages/health-check/src/schedule.js @@ -12,8 +12,8 @@ const basicJob = schedule.scheduleJob("*/5 * * * *", async () => { db.get("entries").push(entry).write(); }); -// execute the verbose health-check script once a day at 3am -const verboseJob = schedule.scheduleJob("*/5 * * * *", async () => { +// execute the verbose health-check script once per hour +const verboseJob = schedule.scheduleJob("0 * * * *", async () => { const entry = { date: new Date().toISOString(), checks: [] }; entry.checks = await Promise.all(verboseChecks.map((check) => new Promise(check)));