refactor: optimize connection health checks to reduce log stream interference; adjust health check intervals and implement non-blocking pings

This commit is contained in:
Marvin Zhang
2025-08-16 17:42:07 +08:00
parent 65aeb3ed8c
commit 3edd2a1210
3 changed files with 41 additions and 12 deletions

View File

@@ -53,6 +53,9 @@ func (r *Runner) writeLogLines(lines []string) {
}
return
}
// Update last successful connection time to help health check avoid unnecessary pings
r.lastConnCheck = time.Now()
}
// logInternally sends internal runner logs to the same logging system as the task