From 14d0bcd589dd88bbe5a177a0b06863a71418bd6b Mon Sep 17 00:00:00 2001 From: Brian Murphy Date: Mon, 18 Aug 2014 12:22:13 +0100 Subject: [PATCH] Alerting add TODO Original commit: elastic/x-pack-elasticsearch@23cf5fce8bd27049ce45f2bbce8f9ddd6b9ae77b --- src/main/java/org/elasticsearch/alerting/AlertScheduler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/elasticsearch/alerting/AlertScheduler.java b/src/main/java/org/elasticsearch/alerting/AlertScheduler.java index 540196cbbde..c17c5399781 100644 --- a/src/main/java/org/elasticsearch/alerting/AlertScheduler.java +++ b/src/main/java/org/elasticsearch/alerting/AlertScheduler.java @@ -69,6 +69,7 @@ public class AlertScheduler extends AbstractLifecycleComponent { DateTime scheduledTime = new DateTime(jobExecutionContext.getScheduledFireTime()); if (!alert.enabled()) { logger.warn("Alert [{}] is not enabled", alertName); + return; } try { if (!alertManager.claimAlertRun(alertName, scheduledTime) ){