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:
Robert Nishihara
2017-04-06 23:51:12 -07:00
committed by Philipp Moritz
parent 320109a5bd
commit 7af6f462fb
5 changed files with 388 additions and 2 deletions
+6 -1
View File
@@ -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()