mirror of
https://github.com/wassname/ray.git
synced 2026-07-17 11:32:33 +08:00
[Asyncio] Remove async init legacy code (#8177)
* [Asyncio] Remove async init legacy code * Fix places that call async_init
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user