I’d like the Actor to run inside another application so that I can utilize this application through the ray cluster.
Currently, I can interact with the ray cluster from within the application by using ray.init etc.
Instead of that, I’d like to expose an Actor or Serve Deployment from within the application, to allow interacting with it remotely. It would be fine if the Actor runs inside a new process, but I need to be able to interact with this process to connect the methods of the Actor/Deployment to the appropriate functions of the external application.
Edit: The application is a GUI app, so I can’t run it just anywhere. Also, the easiest way to integrate a ray Actor with the UI event loop is to run it from within.
Edit2: Basically, what I’m asking is how do I start a ray worker manually, from within a Python interpreter, in a way that allows subsequent interaction with its process.