Add option of load_code_from_local which is required in cross-language ray call. (#3675)

This commit is contained in:
Yuhong Guo
2019-02-21 12:37:17 +08:00
committed by Hao Chen
parent e3066d1fa5
commit 1f864a02bc
9 changed files with 270 additions and 105 deletions
+5 -1
View File
@@ -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,