CoreWorker correctly push metrics to agent (#10031)

This commit is contained in:
Simon Mo
2020-08-13 16:44:53 -07:00
committed by GitHub
parent b77d6bf87d
commit 01f38bc5d1
6 changed files with 72 additions and 27 deletions
+3
View File
@@ -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();
});
}