Skip to content

Commit

Permalink
fix(cron): run monitoring every 5 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Jun 27, 2024
1 parent cdd5fe3 commit f0cbd21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/monitoring/MonitoringService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/utils/dns-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export default function getDnsCheckerMessage(
}

export function dnsMonitor(domain: string): ResultAsync<string, string> {
console.log("dnsMonitor", domain)
if (!domain) {
return okAsync("Empty domain provided")
}
Expand Down

0 comments on commit f0cbd21

Please sign in to comment.