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

This commit is contained in:
Massimiliano Pronesti
2023-07-20 02:01:19 +02:00
committed by GitHub
parent bda41c70dd
commit 16c3e295a8

View File

@@ -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.