From 5a7965a96413107dd7ae8d18675991a842925e41 Mon Sep 17 00:00:00 2001 From: Rushi Vishavadia Date: Mon, 7 Oct 2024 11:52:37 +0530 Subject: [PATCH] Increase interval to every 15 minutes --- src/monitor-elastic-agents.js | 2 +- src/monitor-jobs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monitor-elastic-agents.js b/src/monitor-elastic-agents.js index 344869c..1a9bc67 100644 --- a/src/monitor-elastic-agents.js +++ b/src/monitor-elastic-agents.js @@ -54,7 +54,7 @@ async function check() { } if (process.argv[2] === "start") { - const interval = process.argv[3] ?? 10; + const interval = process.argv[3] ?? 15; const expr = `*/${interval} * * * 1-5`; // */2 is every two minutes console.log(`${now()} 🚀 Starting Cron Job for agents health (${expr})`); check(); diff --git a/src/monitor-jobs.js b/src/monitor-jobs.js index 23c0858..dc56a4a 100644 --- a/src/monitor-jobs.js +++ b/src/monitor-jobs.js @@ -95,7 +95,7 @@ async function check() { } if (process.argv[2] === "start") { - const interval = process.argv[3] ?? 10; + const interval = process.argv[3] ?? 15; const expr = `*/${interval} * * * 1-5`; // */2 is every two minutes (see crontab.guru) console.log(`${now()} 🚀 Starting Cron Job for server health (${expr})`); check();