[core][experimental] Remove separate asyncio path for accelerated DAGs #46307
Labels
accelerated-dag
core
Issues that should be addressed in Ray Core
enhancement
Request for new feature and/or capability
P2
Important issue, but not time-critical
UX
The issue is not only about technical bugs
Description
Right now asyncio support in accelerated DAGs uses a slightly different codepath from normal DAGs:
enable_asyncio=True
indag.experimental_compile()
dag.execute_async
await
twice, once for the execution and again for the outputThis is because asyncio execution currently starts a background thread to read/write channels, so we need these extra APIs for coordinating with the background thread. With timeout support for channel reads and writes (#46259), we might be able to remove some of these APIs and support asyncio with single-threaded execution, using mostly the same codepath as non-asyncio execution.
Use case
No response
The text was updated successfully, but these errors were encountered: