From 84679131cd1c4cc345e9b44fef092c1c6710bdb0 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Fri, 26 Oct 2018 10:40:10 -0700 Subject: [PATCH] fix(quietperiods): remove conditional bean (#378) --- .../echo/pipelinetriggers/QuietPeriodIndicator.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/echo-pipelinetriggers/src/main/java/com/netflix/spinnaker/echo/pipelinetriggers/QuietPeriodIndicator.java b/echo-pipelinetriggers/src/main/java/com/netflix/spinnaker/echo/pipelinetriggers/QuietPeriodIndicator.java index 278823719..147d40796 100644 --- a/echo-pipelinetriggers/src/main/java/com/netflix/spinnaker/echo/pipelinetriggers/QuietPeriodIndicator.java +++ b/echo-pipelinetriggers/src/main/java/com/netflix/spinnaker/echo/pipelinetriggers/QuietPeriodIndicator.java @@ -34,10 +34,14 @@ import static java.time.format.DateTimeFormatter.ISO_INSTANT; +/** + * Handles quiet periods, where a configurable set of triggers will be + * suppressed for a configured time interval. Without any configuration, + * it will default to disabled, and invalid configuration will cause + * log messages to be generated, and disable this feature. + */ @Slf4j @Component -@ConditionalOnExpression("${quietPeriod.enabled:false}") -@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON) public class QuietPeriodIndicator { private final Registry registry;