Programmatic creation of ray cluster

if i’d like to create a ray cluster (head and workers) from scratch as part of my code – what is the recommended way of doing this? E.g. is there a flag in ray.init() to tell it to create a new cluster if head doesn’t exist, or something like this?

cc @Ameer_Haj_Ali do you know if we can do that?

Unfortunately, there is no way to create a cluster from ray.init() in open source.

looking at this – it feels like it should be possible to create a new cluster. Am I misinterpreting the code?

def create_or_update_cluster