Fix broken pipe callback (#4513)

This commit is contained in:
Yuhong Guo
2019-04-02 17:42:18 +08:00
committed by Hao Chen
parent 20c7b2a6eb
commit c2c548bdfd
7 changed files with 56 additions and 24 deletions
+4 -2
View File
@@ -573,8 +573,10 @@ class Node(object):
check_alive (bool): Raise an exception if the process was already
dead.
"""
self._kill_process_type(
ray_constants.PROCESS_TYPE_REPORTER, check_alive=check_alive)
# reporter is started only in PY3.
if PY3:
self._kill_process_type(
ray_constants.PROCESS_TYPE_REPORTER, check_alive=check_alive)
def kill_dashboard(self, check_alive=True):
"""Kill the dashboard.