mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:22:39 +08:00
Remove legacy Ray code. (#3121)
* Remove legacy Ray code. * Fix cmake and simplify monitor. * Fix linting * Updates * Fix * Implement some methods. * Remove more plasma manager references. * Fix * Linting * Fix * Fix * Make sure class IDs are strings. * Some path fixes * Fix * Path fixes and update arrow * Fixes. * linting * Fixes * Java fixes * Some java fixes * TaskLanguage -> Language * Minor * Fix python test and remove unused method signature. * Fix java tests * Fix jenkins tests * Remove commented out code.
This commit is contained in:
committed by
Philipp Moritz
parent
055daf17a0
commit
658c14282c
@@ -117,27 +117,6 @@ def get_object_store_socket_name():
|
||||
return make_inc_temp(prefix="plasma_store", directory_name=sockets_dir)
|
||||
|
||||
|
||||
def get_plasma_manager_socket_name():
|
||||
"""Get a socket name for plasma manager."""
|
||||
sockets_dir = get_sockets_dir_path()
|
||||
return make_inc_temp(prefix="plasma_manager", directory_name=sockets_dir)
|
||||
|
||||
|
||||
def get_local_scheduler_socket_name(suffix=""):
|
||||
"""Get a socket name for local scheduler.
|
||||
|
||||
This function could be unsafe. The socket name may
|
||||
refer to a file that did not exist at some point, but by the time
|
||||
you get around to creating it, someone else may have beaten you to
|
||||
the punch.
|
||||
"""
|
||||
sockets_dir = get_sockets_dir_path()
|
||||
raylet_socket_name = make_inc_temp(
|
||||
prefix="scheduler", directory_name=sockets_dir, suffix=suffix)
|
||||
|
||||
return raylet_socket_name
|
||||
|
||||
|
||||
def get_ipython_notebook_path(port):
|
||||
"""Get a new ipython notebook path"""
|
||||
|
||||
@@ -211,17 +190,6 @@ def new_raylet_log_file(local_scheduler_index, redirect_output):
|
||||
return raylet_stdout_file, raylet_stderr_file
|
||||
|
||||
|
||||
def new_local_scheduler_log_file(local_scheduler_index, redirect_output):
|
||||
"""Create new logging files for local scheduler.
|
||||
|
||||
It is only used in non-raylet versions.
|
||||
"""
|
||||
local_scheduler_stdout_file, local_scheduler_stderr_file = (new_log_files(
|
||||
"local_scheduler_{}".format(local_scheduler_index),
|
||||
redirect_output=redirect_output))
|
||||
return local_scheduler_stdout_file, local_scheduler_stderr_file
|
||||
|
||||
|
||||
def new_webui_log_file():
|
||||
"""Create new logging files for web ui."""
|
||||
ui_stdout_file, ui_stderr_file = new_log_files(
|
||||
@@ -229,17 +197,6 @@ def new_webui_log_file():
|
||||
return ui_stdout_file, ui_stderr_file
|
||||
|
||||
|
||||
def new_worker_log_file(local_scheduler_index, worker_index, redirect_output):
|
||||
"""Create new logging files for workers with local scheduler index.
|
||||
|
||||
It is only used in non-raylet versions.
|
||||
"""
|
||||
worker_stdout_file, worker_stderr_file = new_log_files(
|
||||
"worker_{}_{}".format(local_scheduler_index, worker_index),
|
||||
redirect_output)
|
||||
return worker_stdout_file, worker_stderr_file
|
||||
|
||||
|
||||
def new_worker_redirected_log_file(worker_id):
|
||||
"""Create new logging files for workers to redirect its output."""
|
||||
worker_stdout_file, worker_stderr_file = (new_log_files(
|
||||
@@ -254,16 +211,6 @@ def new_log_monitor_log_file():
|
||||
return log_monitor_stdout_file, log_monitor_stderr_file
|
||||
|
||||
|
||||
def new_global_scheduler_log_file(redirect_output):
|
||||
"""Create new logging files for the new global scheduler.
|
||||
|
||||
It is only used in non-raylet versions.
|
||||
"""
|
||||
global_scheduler_stdout_file, global_scheduler_stderr_file = (
|
||||
new_log_files("global_scheduler", redirect_output))
|
||||
return global_scheduler_stdout_file, global_scheduler_stderr_file
|
||||
|
||||
|
||||
def new_plasma_store_log_file(local_scheduler_index, redirect_output):
|
||||
"""Create new logging files for the plasma store."""
|
||||
plasma_store_stdout_file, plasma_store_stderr_file = new_log_files(
|
||||
@@ -271,13 +218,6 @@ def new_plasma_store_log_file(local_scheduler_index, redirect_output):
|
||||
return plasma_store_stdout_file, plasma_store_stderr_file
|
||||
|
||||
|
||||
def new_plasma_manager_log_file(local_scheduler_index, redirect_output):
|
||||
"""Create new logging files for the plasma manager."""
|
||||
plasma_manager_stdout_file, plasma_manager_stderr_file = new_log_files(
|
||||
"plasma_manager_{}".format(local_scheduler_index), redirect_output)
|
||||
return plasma_manager_stdout_file, plasma_manager_stderr_file
|
||||
|
||||
|
||||
def new_monitor_log_file(redirect_output):
|
||||
"""Create new logging files for the monitor."""
|
||||
monitor_stdout_file, monitor_stderr_file = new_log_files(
|
||||
|
||||
Reference in New Issue
Block a user