Skip to content

[core] Remove deprecated ray start CLI options #53675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions python/ray/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,6 @@ def debug(address: str, verbose: bool):
default=0,
help="the port to use for starting the node manager",
)
@click.option(
"--gcs-server-port",
required=False,
type=int,
help="Port number for the GCS server.",
)
@click.option(
"--min-worker-port",
required=False,
Expand Down Expand Up @@ -519,12 +513,6 @@ def debug(address: str, verbose: bool):
default=None,
help="the port for dashboard agents to listen for grpc on.",
)
@click.option(
"--dashboard-grpc-port",
type=int,
default=None,
help="(Deprecated) No longer used and will be removed in a future version of Ray.",
)
@click.option(
"--runtime-env-agent-port",
type=int,
Expand Down Expand Up @@ -561,16 +549,6 @@ def debug(address: str, verbose: bool):
default=False,
help="do not redirect non-worker stdout and stderr to files",
)
@click.option(
"--plasma-store-socket-name",
default=None,
help="manually specify the socket name of the plasma store",
)
@click.option(
"--raylet-socket-name",
default=None,
help="manually specify the socket path of the raylet process",
)
@click.option(
"--temp-dir",
default=None,
Expand Down Expand Up @@ -713,7 +691,6 @@ def start(
redis_shard_ports,
object_manager_port,
node_manager_port,
gcs_server_port,
min_worker_port,
max_worker_port,
worker_port_list,
Expand All @@ -728,16 +705,13 @@ def start(
dashboard_host,
dashboard_port,
dashboard_agent_listen_port,
dashboard_grpc_port,
dashboard_agent_grpc_port,
runtime_env_agent_port,
block,
plasma_directory,
object_spilling_directory,
autoscaling_config,
no_redirect_output,
plasma_store_socket_name,
raylet_socket_name,
temp_dir,
storage,
system_config,
Expand All @@ -757,13 +731,6 @@ def start(
):
"""Start Ray processes manually on the local machine."""

if gcs_server_port is not None:
cli_logger.error(
"`{}` is deprecated and ignored. Use {} to specify "
"GCS server port on head node.",
cf.bold("--gcs-server-port"),
cf.bold("--port"),
)
# Whether the original arguments include node_ip_address.
include_node_ip_address = False
if node_ip_address is not None:
Expand Down Expand Up @@ -807,21 +774,6 @@ def start(
cf.bold('--labels="key1=val1,key2=val2"'),
)
labels_dict = {**labels_from_file, **labels_from_string}

if plasma_store_socket_name is not None:
warnings.warn(
"plasma_store_socket_name is deprecated and will be removed. You are not "
"supposed to specify this parameter as it's internal.",
DeprecationWarning,
stacklevel=2,
)
if raylet_socket_name is not None:
warnings.warn(
"raylet_socket_name is deprecated and will be removed. You are not "
"supposed to specify this parameter as it's internal.",
DeprecationWarning,
stacklevel=2,
)
if temp_dir and not head:
cli_logger.warning(
f"`--temp-dir={temp_dir}` option will be ignored. "
Expand Down Expand Up @@ -853,10 +805,6 @@ def start(
"--storage is deprecated and will be removed in a future version of Ray.",
)

if dashboard_grpc_port is not None:
warnings.warn(
"--dashboard-grpc-port is deprecated and will be removed in a future version of Ray.",
)
ray_params = ray._private.parameter.RayParams(
node_ip_address=node_ip_address,
node_name=node_name if node_name else node_ip_address,
Expand All @@ -879,8 +827,6 @@ def start(
plasma_directory=plasma_directory,
object_spilling_directory=object_spilling_directory,
huge_pages=False,
plasma_store_socket_name=plasma_store_socket_name,
raylet_socket_name=raylet_socket_name,
temp_dir=temp_dir,
storage=storage,
include_dashboard=include_dashboard,
Expand Down