From f0cbd217bcce7968f077df32a22db0ae09bf365c Mon Sep 17 00:00:00 2001 From: Kishore <42832651+kishore03109@users.noreply.github.com> Date: Thu, 27 Jun 2024 09:03:07 +0800 Subject: [PATCH] fix(cron): run monitoring every 5 mins --- src/monitoring/MonitoringService.ts | 2 +- src/utils/dns-utils.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/monitoring/MonitoringService.ts b/src/monitoring/MonitoringService.ts index 83c5a4767..d38117a63 100644 --- a/src/monitoring/MonitoringService.ts +++ b/src/monitoring/MonitoringService.ts @@ -52,7 +52,7 @@ export default class MonitoringService { autoBind(this) const jobName = "dnsMonitoring" - const FIVE_MINUTE_CRON = "5 * * * *" + const FIVE_MINUTE_CRON = "*/5 * * * *" const jobData = { name: "monitoring sites", diff --git a/src/utils/dns-utils.ts b/src/utils/dns-utils.ts index 941899286..b898df137 100644 --- a/src/utils/dns-utils.ts +++ b/src/utils/dns-utils.ts @@ -180,6 +180,7 @@ export default function getDnsCheckerMessage( } export function dnsMonitor(domain: string): ResultAsync { + console.log("dnsMonitor", domain) if (!domain) { return okAsync("Empty domain provided") }