Ray.init ignore_reinit_error=True doesn't seem to work for ray client

How severe does this issue affect your experience of using Ray?

  • Medium: It contributes to significant difficulty to complete my task, but I can work around it.

when I am using ray.init() from a client to connect to a ray cluster, even when I pass in the ignore_reinit_error=True argument, it returns: RuntimeError: Ray Client is already connected. Maybe you called ray.init(“ray://”) twice by accident?

Is this expected behavior?

Thanks for reporting this, I’ve filed a GitHub bug here: [client] Ray.init ignore_reinit_error=True doesn’t seem to work for ray client · Issue #24888 · ray-project/ray · GitHub