mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 04:09:45 +08:00
CoreWorker correctly push metrics to agent (#10031)
This commit is contained in:
@@ -76,6 +76,9 @@ void MetricsAgentExporter::ReportMetrics(const std::vector<MetricPoint> &points)
|
||||
// TODO(sang): Should retry metrics report if it fails.
|
||||
client_->ReportMetrics(
|
||||
request, [this](const Status &status, const rpc::ReportMetricsReply &reply) {
|
||||
if (!status.ok()) {
|
||||
RAY_LOG(WARNING) << "ReportMetrics failed with status " << status;
|
||||
}
|
||||
should_update_description_ = reply.metrcs_description_required();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user