Skip to content

Commit fd49a49

Browse files
committed
feat: add comment about tearing down ray clusters to cluster.apply()
1 parent 68d1f6c commit fd49a49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/codeflare_sdk/ray/cluster/cluster.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,17 @@ def apply(self, force=False):
219219
force_conflicts=force,
220220
)
221221
print(
222-
f"AppWrapper: '{name}' configuration has successfully been applied"
222+
f"AppWrapper: '{name}' configuration has successfully been applied. For optimal resource management, you should delete this Ray Cluster when no longer in use."
223223
)
224224
else:
225225
api_version = "ray.io/v1"
226226
api_instance = crds.get(api_version=api_version, kind="RayCluster")
227227
self._component_resources_apply(
228228
namespace=namespace, api_instance=api_instance
229229
)
230-
print(f"Ray Cluster: '{name}' has successfully been applied")
230+
print(
231+
f"Ray Cluster: '{name}' has successfully been applied. For optimal resource management, you should delete this Ray Cluster when no longer in use."
232+
)
231233
except AttributeError as e:
232234
raise RuntimeError(f"Failed to initialize DynamicClient: {e}")
233235
except Exception as e: # pragma: no cover

0 commit comments

Comments
 (0)