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?
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(...):