mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-31 08:25:34 +00:00
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...
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user