mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
Add API for querying global control state. (#431)
* Add API for querying global control state. * Fix linting. * Fix errors in Python 2. * Fix bug in test. * Fix bug in test.
This commit is contained in:
committed by
Philipp Moritz
parent
320109a5bd
commit
7af6f462fb
+6
-1
@@ -18,7 +18,12 @@ import shlex
|
||||
|
||||
# These lines added to enable Sphinx to work without installing Ray.
|
||||
import mock
|
||||
MOCK_MODULES = ["ray.numbuf", "ray.local_scheduler", "ray.plasma"]
|
||||
MOCK_MODULES = ["ray.numbuf",
|
||||
"ray.local_scheduler",
|
||||
"ray.plasma",
|
||||
"ray.core.generated.TaskInfo",
|
||||
"ray.core.generated.TaskReply",
|
||||
"ray.core.generated.ResultTableReply"]
|
||||
for mod_name in MOCK_MODULES:
|
||||
sys.modules[mod_name] = mock.Mock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user