Skip to content

Commit 72ed628

Browse files
docs: Support JobDeploymentStatus as deletion condition
Signed-off-by: JiangJiaWei1103 <waynechuang97@gmail.com>
1 parent 1c0cf0b commit 72ed628

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ray-operator/config/samples/ray-job.deletion-rules.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ spec:
1212
# DeletionStrategy defines the deletion policies for a RayJob.
1313
# It allows for fine-grained control over resource cleanup after a job finishes.
1414
# DeletionRules is a list of deletion rules, processed based on their trigger conditions.
15+
# Currently, both JobStatus and JobDeploymentStatus are supported as deletion conditions:
16+
# - JobStatus (application-level): Match the Ray job execution status.
17+
# - Currently, only "SUCCEEDED" and "FAILED" are supported.
18+
# - JobDeploymentStatus (infrastructure-level): Match the RayJob deployment lifecycle status. This is particularly useful for cleaning up resources when Ray jobs fail to be submitted.
19+
# - Currently, only "Failed" is supported.
20+
# For each deletion rule, exactly one of JobStatus and JobDeploymentStatus must be specified.
1521
# While the rules can be used to define a sequence, if multiple rules are overdue (e.g., due to controller downtime),
1622
# the most impactful rule (e.g., DeleteCluster) will be executed first to prioritize resource cleanup and cost savings.
1723
deletionStrategy:

0 commit comments

Comments
 (0)