Unverified Commit 16c3e295 authored by Massimiliano Pronesti's avatar Massimiliano Pronesti Committed by GitHub
Browse files

fix(ray_utils): ignore re-init error (#465)

parent bda41c70
...@@ -44,7 +44,7 @@ def initialize_cluster( ...@@ -44,7 +44,7 @@ def initialize_cluster(
"Ray is not installed. Please install Ray to use distributed " "Ray is not installed. Please install Ray to use distributed "
"serving.") "serving.")
# Connect to a ray cluster. # Connect to a ray cluster.
ray.init(address=ray_address) ray.init(address=ray_address, ignore_reinit_error=True)
if not parallel_config.worker_use_ray: if not parallel_config.worker_use_ray:
# Initialize cluster locally. # Initialize cluster locally.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment