How to enable @ray.remote decorator programmatically

Hello,
I would like to be able, also for debug purposes and speed of program start, to be able to activate or deactivate ray and therefore the @ray.remote decorator programmatically. Is there a way to do this?
Thanks

1 Like

Maybe you can try instead of using the decorator, using:

def func(): ...

func = ray.remote(func)

NOTE: this is equivalent to:

@ray.remote
def func(...):
1 Like