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