Skip to content

Commit 2b998f5

Browse files
authored
[core] Remove unused object_ref_seed parameter (#53698)
Unset, unused. --------- Signed-off-by: Edward Oakes <[email protected]>
1 parent 8e30ee1 commit 2b998f5

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ repos:
5353
args: [
5454
--style=google,
5555
--baseline=ci/lint/pydoclint-baseline.txt,
56-
--exclude=thirdparty|^python/ray/serve/tests/test_config_files/syntax_error\.py$,
56+
--exclude=thirdparty|^python/ray/serve/tests/test_config_files/syntax_error\.py$|^python/ray/_private/parameter\.py$,
5757
# --generate-baseline=True, # Not generally needed, but documenting since this is how we generate the initial baseline
5858
--auto-regenerate-baseline=True,
5959
# Current settings (not because we think they're right, but because we

python/ray/_private/node.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,6 @@ def redis_password(self):
673673
"""Get the cluster Redis password."""
674674
return self._ray_params.redis_password
675675

676-
@property
677-
def object_ref_seed(self):
678-
"""Get the seed for deterministic generation of object refs"""
679-
return self._ray_params.object_ref_seed
680-
681676
@property
682677
def plasma_store_socket_name(self):
683678
"""Get the node's plasma store socket name."""

python/ray/_private/parameter.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ class RayParams:
4848
ray_client_server_port: The port number the ray client server
4949
will bind on. If not set, the ray client server will not
5050
be started.
51-
object_ref_seed: Used to seed the deterministic generation of
52-
object refs. The same value can be used across multiple runs of the
53-
same job in order to generate the object refs in a consistent
54-
manner. However, the same ID should not be used for different jobs.
5551
redirect_output: True if stdout and stderr for non-worker
5652
processes should be redirected to files and false otherwise.
5753
external_addresses: The address of external Redis server to
@@ -150,7 +146,6 @@ def __init__(
150146
max_worker_port: Optional[int] = None,
151147
worker_port_list: Optional[List[int]] = None,
152148
ray_client_server_port: Optional[int] = None,
153-
object_ref_seed: Optional[int] = None,
154149
driver_mode=None,
155150
redirect_output: Optional[bool] = None,
156151
external_addresses: Optional[List[str]] = None,
@@ -242,7 +237,6 @@ def __init__(
242237
self.metrics_export_port = metrics_export_port
243238
self.tracing_startup_hook = tracing_startup_hook
244239
self.no_monitor = no_monitor
245-
self.object_ref_seed = object_ref_seed
246240
self.ray_debugger_external = ray_debugger_external
247241
self.env_vars = env_vars
248242
self.session_name = session_name

python/ray/_private/worker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,6 @@ def sigterm_handler(signum, frame):
17841784
# Use a random port by not specifying Redis port / GCS server port.
17851785
ray_params = ray._private.parameter.RayParams(
17861786
node_ip_address=_node_ip_address,
1787-
object_ref_seed=None,
17881787
driver_mode=driver_mode,
17891788
redirect_output=None,
17901789
num_cpus=num_cpus,
@@ -1874,7 +1873,6 @@ def sigterm_handler(signum, frame):
18741873
redis_address=redis_address,
18751874
redis_username=_redis_username,
18761875
redis_password=_redis_password,
1877-
object_ref_seed=None,
18781876
temp_dir=_temp_dir,
18791877
_system_config=_system_config,
18801878
enable_object_reconstruction=_enable_object_reconstruction,

0 commit comments

Comments
 (0)