mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 13:49:45 +08:00
Add option of load_code_from_local which is required in cross-language ray call. (#3675)
This commit is contained in:
@@ -73,6 +73,7 @@ class RayParams(object):
|
||||
include_java (bool): If True, the raylet backend can also support
|
||||
Java worker.
|
||||
java_worker_options (str): The command options for Java worker.
|
||||
load_code_from_local: Whether load code from local file or from GCS.
|
||||
_internal_config (str): JSON configuration for overriding
|
||||
RayConfig defaults. For testing purposes ONLY.
|
||||
"""
|
||||
@@ -110,6 +111,7 @@ class RayParams(object):
|
||||
autoscaling_config=None,
|
||||
include_java=False,
|
||||
java_worker_options=None,
|
||||
load_code_from_local=False,
|
||||
_internal_config=None):
|
||||
self.object_id_seed = object_id_seed
|
||||
self.redis_address = redis_address
|
||||
@@ -141,6 +143,7 @@ class RayParams(object):
|
||||
self.autoscaling_config = autoscaling_config
|
||||
self.include_java = include_java
|
||||
self.java_worker_options = java_worker_options
|
||||
self.load_code_from_local = load_code_from_local
|
||||
self._internal_config = _internal_config
|
||||
self._check_usage()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user