fix(ray_utils): ignore re-init error (#465)
This commit is contained in:
committed by
GitHub
parent
bda41c70dd
commit
16c3e295a8
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user