mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 10:01:11 +08:00
[Java] Allow passing internal config from raylet to Java worker (#7532)
This commit is contained in:
@@ -1366,11 +1366,11 @@ def build_java_worker_command(
|
||||
pairs.append(("ray.home", RAY_HOME))
|
||||
pairs.append(("ray.log-dir", os.path.join(session_dir, "logs")))
|
||||
pairs.append(("ray.session-dir", session_dir))
|
||||
pairs.append(("ray.raylet.config.num_workers_per_process_java",
|
||||
"RAY_WORKER_NUM_WORKERS_PLACEHOLDER"))
|
||||
|
||||
command = ["java"] + ["-D{}={}".format(*pair) for pair in pairs]
|
||||
|
||||
command += ["RAY_WORKER_RAYLET_CONFIG_PLACEHOLDER"]
|
||||
|
||||
# Add ray jars path to java classpath
|
||||
ray_jars = os.path.join(get_ray_jars_dir(), "*")
|
||||
if java_worker_options is None:
|
||||
|
||||
Reference in New Issue
Block a user