chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
from functools import lru_cache
from pathlib import Path
@lru_cache()
def _is_ray_cluster():
"""Checks if the bootstrap config file exists.
This will always exist if using an autoscaling cluster/started
with the ray cluster launcher.
"""
return Path("~/ray_bootstrap_config.yaml").expanduser().exists()