From 0575f36374abf7b518aa7b425721aaac22c8a43f Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 12 Jul 2024 14:43:24 -0700 Subject: [PATCH] Let agents continuously report their health (#3893) The agent should continue to report the health status as long as it got not terminated. extracted from #2951 Right now there exist the case where you have ''shadow agents" who pull tasks even if they don't report healthy... --- cmd/agent/core/agent.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/agent/core/agent.go b/cmd/agent/core/agent.go index 1e6c57067..d4c37fc4b 100644 --- a/cmd/agent/core/agent.go +++ b/cmd/agent/core/agent.go @@ -210,7 +210,6 @@ func run(c *cli.Context, backends []types.Backend) error { err := client.ReportHealth(ctx) if err != nil { log.Err(err).Msg("failed to report health") - return } <-time.After(time.Second * 10)