def init(): ray.init(num_cpus=4) async_api.init() asyncio.get_event_loop().set_debug(False) yield async_api.shutdown() ray.shutdown()
def init(): os.environ["RAY_FORCE_DIRECT"] = "0" ray.init(num_cpus=4) async_api.init() asyncio.get_event_loop().set_debug(False) yield async_api.shutdown() ray.shutdown()