From d9f4a8c95fc5d3240cc9477c2d3f482a7a6aaa98 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Mon, 14 Jan 2019 16:09:27 +0100 Subject: [PATCH] sd: Fix stuck Azure service discovery (#5088) Signed-off-by: Sylvain Rabot --- discovery/azure/azure.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discovery/azure/azure.go b/discovery/azure/azure.go index 7c999382ef..ecdad07c1b 100644 --- a/discovery/azure/azure.go +++ b/discovery/azure/azure.go @@ -362,6 +362,10 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) { } } } + + // If we get here we haven't sent anything to the channel. + // We need to send it something to release it. + ch <- target{} }(i, vm) }