We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ba481 commit afb8d6cCopy full SHA for afb8d6c
trinity/utils/dlc_utils.py
@@ -39,7 +39,11 @@ def get_dlc_env_vars() -> dict:
39
40
def is_running() -> bool:
41
"""Check if ray cluster is running."""
42
- ret = subprocess.run("ray status", shell=True, capture_output=True)
+ python_dir = os.path.dirname(sys.executable)
43
+ ray_path = os.path.join(python_dir, "ray")
44
+ if os.path.exists(ray_path) is False:
45
+ ray_path = "ray"
46
+ ret = subprocess.run(f"{ray_path} status", shell=True, capture_output=True)
47
return ret.returncode == 0
48
49
0 commit comments