Skip to content

Commit

Permalink
Increase interval to every 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
rushi committed Oct 7, 2024
1 parent 3ec2e81 commit 5a7965a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/monitor-elastic-agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/monitor-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5a7965a

Please sign in to comment.