Let agents continuously report their health ()

The agent should continue to report the health status as long as it got not terminated.

extracted from 

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:
6543 2024-07-12 14:43:24 -07:00 committed by GitHub
parent bc02d376b2
commit 0575f36374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)