I gave details on what I am trying to achieve here Calling an application that relies on ray inside a remote function . But independently of my use case I would be happy to have clarifications on the behavior of user-spawn process and the questions I asked above :). Thanks again for the help.