Skip to content

Commit 86d45ee

Browse files
authored
📖 fix KubeRayInteractiveJob tutorial (#248)
1 parent cbda4ef commit 86d45ee

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

docs/tutorial/kuberay.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,21 @@ By default, the image will be inherited from the `dagster/image` Run tag. Altern
6969
You can customize the Ray cluster configuration:
7070

7171
```python
72-
from dagster_ray.kuberay import KubeRayInteractiveJob
73-
from dagster_ray.kuberay.configs import RayJobConfig, RayJobSpec, RayClusterSpec
72+
from dagster_ray.kuberay import (
73+
InteractiveRayJobConfig,
74+
InteractiveRayJobSpec,
75+
KubeRayInteractiveJob,
76+
)
77+
from dagster_ray.kuberay.configs import RayClusterSpec
7478

7579
ray_cluster = KubeRayInteractiveJob(
76-
ray_job=RayJobConfig(
80+
ray_job=InteractiveRayJobConfig(
7781
metadata={
7882
"namespace": "my-custom-namespace",
7983
"labels": {"team": "my-team"},
8084
"annotations": {"example": "annotation"},
8185
},
82-
spec=RayJobSpec(
86+
spec=InteractiveRayJobSpec(
8387
ttl_seconds_after_finished=3600,
8488
deletion_strategy={
8589
"onSuccess": {"policy": "DeleteSelf"},

0 commit comments

Comments
 (0)