flyteplugins-ray 2.0.0b7__py3-none-any.whl → 2.0.0b30__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.
- flyteplugins/ray/task.py +5 -4
- {flyteplugins_ray-2.0.0b7.dist-info → flyteplugins_ray-2.0.0b30.dist-info}/METADATA +2 -2
- flyteplugins_ray-2.0.0b30.dist-info/RECORD +6 -0
- flyteplugins_ray-2.0.0b7.dist-info/RECORD +0 -6
- {flyteplugins_ray-2.0.0b7.dist-info → flyteplugins_ray-2.0.0b30.dist-info}/WHEEL +0 -0
- {flyteplugins_ray-2.0.0b7.dist-info → flyteplugins_ray-2.0.0b30.dist-info}/top_level.txt +0 -0
flyteplugins/ray/task.py
CHANGED
|
@@ -5,12 +5,12 @@ 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
|
-
from
|
|
13
|
+
from flyteidl2.plugins.ray_pb2 import HeadGroupSpec, RayCluster, RayJob, WorkerGroupSpec
|
|
14
14
|
from google.protobuf.json_format import MessageToDict
|
|
15
15
|
|
|
16
16
|
import ray
|
|
@@ -62,15 +62,16 @@ class RayFunctionTask(AsyncFunctionTaskTemplate):
|
|
|
62
62
|
|
|
63
63
|
task_type: str = "ray"
|
|
64
64
|
plugin_config: RayJobConfig
|
|
65
|
+
debuggable: bool = True
|
|
65
66
|
|
|
66
67
|
async def pre(self, *args, **kwargs) -> Dict[str, Any]:
|
|
67
68
|
init_params = {"address": self.plugin_config.address}
|
|
68
69
|
|
|
69
|
-
if is_in_cluster():
|
|
70
|
+
if flyte.ctx().is_in_cluster():
|
|
70
71
|
working_dir = os.getcwd()
|
|
71
72
|
init_params["runtime_env"] = {
|
|
72
73
|
"working_dir": working_dir,
|
|
73
|
-
"excludes": ["script_mode.tar.gz", "fast*.tar.gz", ".python_history"],
|
|
74
|
+
"excludes": ["script_mode.tar.gz", "fast*.tar.gz", ".python_history", ".code-server"],
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
if not ray.is_initialized():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flyteplugins-ray
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0b30
|
|
4
4
|
Summary: Ray plugin for flyte
|
|
5
5
|
Author-email: Kevin Su <pingsutw@users.noreply.github.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -19,5 +19,5 @@ a type of cluster spun up for a specific Ray job and torn down after completion.
|
|
|
19
19
|
To install the plugin, run the following command:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
pip install
|
|
22
|
+
pip install --pre flyteplugins-ray
|
|
23
23
|
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
flyteplugins/ray/__init__.py,sha256=6FlHBUczAg13S-Lkd1DhwmjMzznpM_wYLemyOEkH1IE,147
|
|
2
|
+
flyteplugins/ray/task.py,sha256=SijShR7VrApXwlH8CgfD9pBlgS72xZ5noYXyCO7QDTs,5151
|
|
3
|
+
flyteplugins_ray-2.0.0b30.dist-info/METADATA,sha256=tfyFt8tpCku01f0z0xzZ1ObFJJnT60FfqtszZ1XqvHI,740
|
|
4
|
+
flyteplugins_ray-2.0.0b30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
flyteplugins_ray-2.0.0b30.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
|
|
6
|
+
flyteplugins_ray-2.0.0b30.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.0b7.dist-info/METADATA,sha256=E0qMsRhRYQ0dDxLv8SDZvNN_vpkTZdMWSEefEWtCmE8,733
|
|
4
|
-
flyteplugins_ray-2.0.0b7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
flyteplugins_ray-2.0.0b7.dist-info/top_level.txt,sha256=cgd779rPu9EsvdtuYgUxNHHgElaQvPn74KhB5XSeMBE,13
|
|
6
|
-
flyteplugins_ray-2.0.0b7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|