Add gcs_service_enabled function to avoid getting environment variable directly (#7742)

This commit is contained in:
fangfengbin
2020-03-26 22:02:53 +08:00
committed by GitHub
parent ca6eabc9cb
commit e196fcdbaf
12 changed files with 31 additions and 21 deletions
+1 -1
View File
@@ -626,7 +626,7 @@ class Node:
# If this is the head node, start the relevant head node processes.
self.start_redis()
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
if ray_constants.GCS_SERVICE_ENABLED:
self.start_gcs_server()
else:
self.start_raylet_monitor()