[Asyncio] Remove async init legacy code (#8177)

* [Asyncio] Remove async init legacy code

* Fix places that call async_init
This commit is contained in:
Simon Mo
2020-04-25 09:32:38 -07:00
committed by GitHub
parent 9dc625318f
commit 13c14eac07
3 changed files with 8 additions and 33 deletions
+2 -2
View File
@@ -1142,8 +1142,8 @@ cdef class CoreWorker:
asyncio.set_event_loop(self.async_event_loop)
# Initialize the async plasma connection.
# Delayed import due to async_api depends on _raylet.
from ray.experimental.async_api import _async_init
self.async_event_loop.run_until_complete(_async_init())
from ray.experimental.async_api import init as plasma_async_init
plasma_async_init()
# Create and attach the monitor object
monitor_state = AsyncMonitorState(self.async_event_loop)