From 8f09f5c65aa9b4e76d0eb78d81d59d938f283899 Mon Sep 17 00:00:00 2001 From: Rob Zienert Date: Wed, 21 Oct 2020 18:29:04 -0700 Subject: [PATCH] fix(queue): Update zombie checker agent spring config --- .../spinnaker/orca/q/metrics/ZombieExecutionCheckingAgent.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orca-queue/src/main/kotlin/com/netflix/spinnaker/orca/q/metrics/ZombieExecutionCheckingAgent.kt b/orca-queue/src/main/kotlin/com/netflix/spinnaker/orca/q/metrics/ZombieExecutionCheckingAgent.kt index c9c5bb25b5..e3cc16a07e 100644 --- a/orca-queue/src/main/kotlin/com/netflix/spinnaker/orca/q/metrics/ZombieExecutionCheckingAgent.kt +++ b/orca-queue/src/main/kotlin/com/netflix/spinnaker/orca/q/metrics/ZombieExecutionCheckingAgent.kt @@ -40,7 +40,7 @@ import org.springframework.stereotype.Component @ConditionalOnExpression( "\${queue.zombie-check.enabled:false}" ) -@ConditionalOnBean(MonitorableQueue::class) +@ConditionalOnBean(ZombieExecutionService::class) class ZombieExecutionCheckingAgent( private val zombieExecutionService: ZombieExecutionService, private val registry: Registry, @@ -56,7 +56,7 @@ class ZombieExecutionCheckingAgent( override fun getPollingInterval() = pollingIntervalMs - override fun getNotificationType() = javaClass.getSimpleName() + override fun getNotificationType(): String = javaClass.simpleName override fun tick() { checkForZombies()