mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-26 08:33:51 +00:00
feat: Support multiple RayPipelines
(#4078)
This commit is contained in:
parent
3e4a2201df
commit
a3016f065f
@ -77,7 +77,10 @@ class RayPipeline(Pipeline):
|
||||
:param serve_args: Optional parameters for initializing Ray Serve.
|
||||
"""
|
||||
ray_args = ray_args or {}
|
||||
if not ray.is_initialized():
|
||||
ray.init(address=address, **ray_args)
|
||||
else:
|
||||
logger.warning("Ray was already initialized, so reusing that for this RayPipeline.")
|
||||
self._serve_controller_client = serve.start(**serve_args)
|
||||
super().__init__()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user