[X] I had searched in the issues and found no similar feature requirement.
Description
The RayJob cluster can be cleaned up by setting spec.shutdownAfterJobFinishes: true, but I can not figure out how to clean up the RayJob itself including the submitter k8s Job.
I am not familiar with Go, but browsing the source code a bit, it seems like this can be realized in createNewK8sJob. The backoffLimit can be set through submitterConfig, perhaps the shutdownAfterJobFinishes field can just be added to that type and used in createNewK8sJob? That would not delete the RayJob resource though.
Use case
I want the RayJob cluster, the RayJob and the submitter k8s Job to be cleaned up automatically.
Search before asking
Description
The RayJob cluster can be cleaned up by setting
spec.shutdownAfterJobFinishes: true
, but I can not figure out how to clean up the RayJob itself including the submitter k8s Job.I am not familiar with Go, but browsing the source code a bit, it seems like this can be realized in createNewK8sJob. The
backoffLimit
can be set throughsubmitterConfig
, perhaps theshutdownAfterJobFinishes
field can just be added to that type and used increateNewK8sJob
? That would not delete the RayJob resource though.Use case
I want the RayJob cluster, the RayJob and the submitter k8s Job to be cleaned up automatically.
Related issues
No response
Are you willing to submit a PR?