mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 12:10:40 +08:00
Add option of load_code_from_local which is required in cross-language ray call. (#3675)
This commit is contained in:
@@ -208,6 +208,11 @@ def cli(logging_level, logging_format):
|
||||
default=None,
|
||||
type=str,
|
||||
help="Do NOT use this. This is for debugging/development purposes ONLY.")
|
||||
@click.option(
|
||||
"--load-code-from-local",
|
||||
is_flag=True,
|
||||
default=False,
|
||||
help="Specify whether load code from local file or GCS serialization.")
|
||||
def start(node_ip_address, redis_address, redis_port, num_redis_shards,
|
||||
redis_max_clients, redis_password, redis_shard_ports,
|
||||
object_manager_port, node_manager_port, object_store_memory,
|
||||
@@ -215,7 +220,7 @@ def start(node_ip_address, redis_address, redis_port, num_redis_shards,
|
||||
plasma_directory, huge_pages, autoscaling_config,
|
||||
no_redirect_worker_output, no_redirect_output,
|
||||
plasma_store_socket_name, raylet_socket_name, temp_dir, include_java,
|
||||
java_worker_options, internal_config):
|
||||
java_worker_options, load_code_from_local, internal_config):
|
||||
# Convert hostnames to numerical IP address.
|
||||
if node_ip_address is not None:
|
||||
node_ip_address = services.address_to_ip(node_ip_address)
|
||||
@@ -250,6 +255,7 @@ def start(node_ip_address, redis_address, redis_port, num_redis_shards,
|
||||
temp_dir=temp_dir,
|
||||
include_java=include_java,
|
||||
java_worker_options=java_worker_options,
|
||||
load_code_from_local=load_code_from_local,
|
||||
_internal_config=internal_config)
|
||||
|
||||
if head:
|
||||
|
||||
Reference in New Issue
Block a user