mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 12:28:10 +08:00
Add gcs_service_enabled function to avoid getting environment variable directly (#7742)
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user