mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 15:05:49 +08:00
Add option of load_code_from_local which is required in cross-language ray call. (#3675)
This commit is contained in:
@@ -973,7 +973,8 @@ def start_raylet(redis_address,
|
||||
stderr_file=None,
|
||||
config=None,
|
||||
include_java=False,
|
||||
java_worker_options=None):
|
||||
java_worker_options=None,
|
||||
load_code_from_local=False):
|
||||
"""Start a raylet, which is a combined local scheduler and object manager.
|
||||
|
||||
Args:
|
||||
@@ -1068,6 +1069,9 @@ def start_raylet(redis_address,
|
||||
if node_manager_port is None:
|
||||
node_manager_port = 0
|
||||
|
||||
if load_code_from_local:
|
||||
start_worker_command += " --load-code-from-local "
|
||||
|
||||
command = [
|
||||
RAYLET_EXECUTABLE,
|
||||
raylet_name,
|
||||
|
||||
Reference in New Issue
Block a user