mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 17:59:28 +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
@@ -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