From 33e400998cfc1dc4cf595e1322775a0af9f75c9c Mon Sep 17 00:00:00 2001 From: mehrdadn Date: Tue, 14 Jul 2020 23:14:53 -0700 Subject: [PATCH] Fix name clash on Windows (#9412) Co-authored-by: Mehrdad --- python/ray/dashboard/dashboard.py | 4 ++-- src/ray/protobuf/reporter.proto | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/ray/dashboard/dashboard.py b/python/ray/dashboard/dashboard.py index 6e5aa2f8d..c9a22bd6e 100644 --- a/python/ray/dashboard/dashboard.py +++ b/python/ray/dashboard/dashboard.py @@ -658,8 +658,8 @@ class RayletStats(threading.Thread): return {"status": "pending"} reply = self._profiling_stats[profiling_id] - if reply.stderr: - return {"status": "error", "error": reply.stderr} + if reply.std_err: + return {"status": "error", "error": reply.std_err} else: return {"status": "finished"} diff --git a/src/ray/protobuf/reporter.proto b/src/ray/protobuf/reporter.proto index d45c0f4db..b0bcc9ca4 100644 --- a/src/ray/protobuf/reporter.proto +++ b/src/ray/protobuf/reporter.proto @@ -29,9 +29,9 @@ message GetProfilingStatsReply { // Profiling stats. string profiling_stats = 1; // Standard output of the profiler process. - string stdout = 2; + string std_out = 2; // Standard error of the profiler process. - string stderr = 3; + string std_err = 3; } message ReportMetricsRequest {