[client] change handling of EOF on jobStream

This commit is contained in:
Diego Romar
2026-02-03 09:02:52 -03:00
parent b20d484972
commit f894da0b11

View File

@@ -204,7 +204,10 @@ func (c *GrpcClient) handleJobStream(
}
} else {
// non-gRPC error
c.notifyDisconnected(err)
if !errors.Is(err, io.EOF) {
c.notifyDisconnected(err)
}
log.Warnf("disconnected from the Management service but will retry silently. Reason: %v", err)
return err
}