Introduce flag to use pickle for serialization (#5805)

This commit is contained in:
Philipp Moritz
2019-10-18 22:29:36 -07:00
committed by GitHub
parent 29eee7f970
commit d23696de17
9 changed files with 85 additions and 22 deletions
+7 -1
View File
@@ -62,6 +62,11 @@ parser.add_argument(
default=False,
action="store_true",
help="True if code is loaded from local files, as opposed to the GCS.")
parser.add_argument(
"--use-pickle",
default=False,
action="store_true",
help="True if cloudpickle should be used for serialization.")
if __name__ == "__main__":
args = parser.parse_args()
@@ -75,7 +80,8 @@ if __name__ == "__main__":
plasma_store_socket_name=args.object_store_name,
raylet_socket_name=args.raylet_name,
temp_dir=args.temp_dir,
load_code_from_local=args.load_code_from_local)
load_code_from_local=args.load_code_from_local,
use_pickle=args.use_pickle)
node = ray.node.Node(
ray_params, head=False, shutdown_at_exit=False, connect_only=True)