Allow actor methods to return multiple object IDs. (#1296)

* Allow actor methods to return multiple object IDs.

* Add test.

* Fixes

* Remove outdated comment.

* Add comment and assert
This commit is contained in:
Robert Nishihara
2017-12-09 10:37:57 -08:00
committed by Philipp Moritz
parent 7e4a28f933
commit 96463c680c
3 changed files with 98 additions and 19 deletions
+2 -1
View File
@@ -57,13 +57,14 @@ from ray.worker import global_state # noqa: E402
# We import ray.actor because some code is run in actor.py which initializes
# some functions in the worker.
import ray.actor # noqa: F401
from ray.actor import method # noqa: E402
# Ray version string. TODO(rkn): This is also defined separately in setup.py.
# Fix this.
__version__ = "0.3.0"
__all__ = ["error_info", "init", "connect", "disconnect", "get", "put", "wait",
"remote", "log_event", "log_span", "flush_log", "actor",
"remote", "log_event", "log_span", "flush_log", "actor", "method",
"get_gpu_ids", "get_webui_url", "register_custom_serializer",
"SCRIPT_MODE", "WORKER_MODE", "PYTHON_MODE", "SILENT_MODE",
"global_state", "_config", "__version__"]