flyteplugins-ray 2.0.0b9__py3-none-any.whl → 2.0.0b11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of flyteplugins-ray might be problematic. Click here for more details.

flyteplugins/ray/task.py CHANGED
@@ -5,9 +5,9 @@ import typing
5
5
  from dataclasses import dataclass
6
6
  from typing import Any, Dict, Optional
7
7
 
8
+ import flyte
8
9
  import yaml
9
10
  from flyte import PodTemplate, Resources
10
- from flyte._tools import is_in_cluster
11
11
  from flyte.extend import AsyncFunctionTaskTemplate, TaskPluginRegistry, pod_spec_from_resources
12
12
  from flyte.models import SerializationContext
13
13
  from flyteidl.plugins.ray_pb2 import HeadGroupSpec, RayCluster, RayJob, WorkerGroupSpec
@@ -66,7 +66,7 @@ class RayFunctionTask(AsyncFunctionTaskTemplate):
66
66
  async def pre(self, *args, **kwargs) -> Dict[str, Any]:
67
67
  init_params = {"address": self.plugin_config.address}
68
68
 
69
- if is_in_cluster():
69
+ if flyte.ctx().is_in_cluster():
70
70
  working_dir = os.getcwd()
71
71
  init_params["runtime_env"] = {
72
72
  "working_dir": working_dir,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyteplugins-ray
3
- Version: 2.0.0b9
3
+ Version: 2.0.0b11
4
4
  Summary: Ray plugin for flyte
5
5
  Author-email: Kevin Su <pingsutw@users.noreply.github.com>
6
6
  Requires-Python: >=3.10
@@ -0,0 +1,6 @@
1
+ flyteplugins/ray/__init__.py,sha256=6FlHBUczAg13S-Lkd1DhwmjMzznpM_wYLemyOEkH1IE,147
2
+ flyteplugins/ray/task.py,sha256=we3Pfvczr8-eAZAL7wzYaq5wFIcQ0Dgv68Tc7qoYoZ8,5106
3
+ flyteplugins_ray-2.0.0b11.dist-info/METADATA,sha256=qu9sbK7BKhB-9KnqiC2v0Q-3Am28bHeVfY66aTQhUKE,740
4
+ flyteplugins_ray-2.0.0b11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ flyteplugins_ray-2.0.0b11.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
6
+ flyteplugins_ray-2.0.0b11.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- flyteplugins/ray/__init__.py,sha256=6FlHBUczAg13S-Lkd1DhwmjMzznpM_wYLemyOEkH1IE,147
2
- flyteplugins/ray/task.py,sha256=iOF5rKtW8KhZrGDkMLLIlpDK_Wv4VYFSAEiygoXsxdg,5120
3
- flyteplugins_ray-2.0.0b9.dist-info/METADATA,sha256=mqfbJiN7lHGAxE3X4O7H3ftL5lQQDVSrT4YFAyjyKvg,739
4
- flyteplugins_ray-2.0.0b9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- flyteplugins_ray-2.0.0b9.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
6
- flyteplugins_ray-2.0.0b9.dist-info/RECORD,,