ray/cpp
WanXing Wang 72bd2d7e09
[Core] Support back pressure for actor tasks. (#20894)
Resubmit the PR https://github.com/ray-project/ray/pull/19936

I've figure out that the test case `//rllib:tests/test_gpus::test_gpus_in_local_mode` failed due to deadlock in local mode.
In local mode, if the user code submits another task during the executing of current task, the `CoreWorker::actor_task_mutex_` may cause deadlock.
The solution is quite simple, release the lock before executing task in local mode.

In the commit 7c2f61c76c:
1. Release the lock in local mode to fix the bug. @scv119 
2. `test_local_mode_deadlock` added to cover the case. @rkooo567 
3. Left a trivial change in `rllib/tests/test_gpus.py` to make the `RAY_CI_RLLIB_DIRECTLY_AFFECTED ` to take effect.
2021-12-13 23:56:07 -08:00
..
example [C++ API] Support object ref args (#19550) 2021-10-29 17:36:53 +08:00
include/ray [C++] Deprecated global named actor and global PGs. (#20468) 2021-11-18 23:21:59 +08:00
src/ray [Core] Support back pressure for actor tasks. (#20894) 2021-12-13 23:56:07 -08:00
BUILD.bazel [C++ worker] set native library path for shared library search (#19376) 2021-10-18 16:03:49 +08:00