ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.76k stars 5.74k forks source link

[core][experimental] Remove separate asyncio path for accelerated DAGs #46307

Open stephanie-wang opened 4 months ago

stephanie-wang commented 4 months ago

Description

Right now asyncio support in accelerated DAGs uses a slightly different codepath from normal DAGs:

This 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

rkooo567 commented 2 months ago

downgrade for now. let's revisit after resolving p1s.