Export GRPC environment variable in Python instead of in setup-env.sh (#382)

* Export GRPC logging environment variable in Python.

* Don't wipe PYTHONPATH in setup-env.sh
This commit is contained in:
Robert Nishihara
2016-08-18 15:39:19 -07:00
committed by Philipp Moritz
parent 314bc9e980
commit b1db890cd8
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -10,6 +10,8 @@ import config
_services_env = os.environ.copy()
_services_env["PATH"] = os.pathsep.join([os.path.dirname(os.path.abspath(__file__)), _services_env["PATH"]])
# Make GRPC only print error messages.
_services_env["GRPC_VERBOSITY"] = "ERROR"
# all_processes is a list of the scheduler, object store, and worker processes
# that have been started by this services module if Ray is being used in local
+2
View File
@@ -654,6 +654,8 @@ def init(start_ray_local=False, num_workers=None, num_objstores=None, scheduler_
Exception: An exception is raised if an inappropriate combination of
arguments is passed in.
"""
# Make GRPC only print error messages.
os.environ["GRPC_VERBOSITY"] = "ERROR"
if driver_mode == raylib.PYTHON_MODE:
# If starting Ray in PYTHON_MODE, don't start any other processes.
pass