mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
refactor: optimize connection health checks to reduce log stream interference; adjust health check intervals and implement non-blocking pings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user