Skip to content

Commit

Permalink
Let agents continuously report their health (woodpecker-ci#3893)
Browse files Browse the repository at this point in the history
The agent should continue to report the health status as long as it got not terminated.

extracted from woodpecker-ci#2951

Right now there exist the case where you have ''shadow agents" who pull tasks even if they don't report healthy...
  • Loading branch information
6543 committed Sep 5, 2024
1 parent 00d129b commit 4289fb0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/agent/core/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,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)
Expand Down

0 comments on commit 4289fb0

Please sign in to comment.