From e1bf49570f18783c43187e8b56ed83dff0b86af6 Mon Sep 17 00:00:00 2001 From: Johan Lindh Date: Thu, 30 Apr 2026 13:58:24 +0200 Subject: [PATCH] fix(runner): interrupt histogram sender backoff --- pkg/runner/runner.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index 17cb068..943cf29 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -2432,7 +2432,11 @@ timerLoop: err = as.send(absPath, startTS, duration) if err != nil { edm.log.Error("histogramSender: unable to send histogram file", "error", err, "backoff_duration", backoffDuration) - time.Sleep(backoffDuration) + select { + case <-time.After(backoffDuration): + case <-edm.ctx.Done(): + return + } continue } err = edm.renameFile(absPath, absPathSent)