mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 08:46:01 +08:00
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:
committed by
Philipp Moritz
parent
314bc9e980
commit
b1db890cd8
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user