[Core]Add runtime context for python worker (#10309)

* add runtime context for python

* fixed

* code fixed

* test added

* lint

* lint
This commit is contained in:
Lixin Wei
2020-08-27 11:11:42 +08:00
committed by GitHub
parent 2526c06b5e
commit fe6daef85e
4 changed files with 136 additions and 1 deletions
+2 -1
View File
@@ -91,6 +91,7 @@ import ray.projects # noqa: E402
import ray.actor # noqa: F401
from ray.actor import method # noqa: E402
from ray.cross_language import java_function, java_actor_class # noqa: E402
from ray.runtime_context import get_runtime_context # noqa: E402
from ray import util # noqa: E402
# Replaced with the current commit when building the wheels.
@@ -100,7 +101,7 @@ __version__ = "0.9.0.dev0"
__all__ = [
"__version__",
"_config",
"_get_runtime_context",
"get_runtime_context",
"actor",
"actors",
"available_resources",