Commit abcd185 1 parent 086c20b commit abcd185 Copy full SHA for abcd185
File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -329,12 +329,20 @@ def check_health(self) -> None:
329
329
logger .debug ("Called check_health." )
330
330
331
331
def _check_ray_compiled_graph_installation (self ):
332
- # TODO: We should check versions that support compiled graph.
332
+ import pkg_resources
333
+ from packaging import version
334
+
335
+ required_version = version .parse ("2.39" )
336
+ current_version = version .parse (
337
+ pkg_resources .get_distribution ("ray" ).version )
338
+ if current_version < required_version :
339
+ raise ValueError (f"Ray version { required_version } is "
340
+ f"required, but found { current_version } " )
341
+
333
342
import importlib .util
334
- adag_spec = importlib .util .find_spec (
335
- "ray.experimental.compiled_dag_ref" )
336
- if adag_spec is None :
337
- raise ValueError ("Ray accelerated DAG is not installed. "
343
+ raycg = importlib .util .find_spec ("ray.experimental.compiled_dag_ref" )
344
+ if raycg is None :
345
+ raise ValueError ("Ray Compiled Graph is not installed. "
338
346
"Run `pip install ray[adag]` to install it." )
339
347
340
348
cupy_spec = importlib .util .find_spec ("cupy" )
You can’t perform that action at this time.
0 commit comments