mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 08:27:06 +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:
parent
bc02d376b2
commit
0575f36374
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue