ray-project / kuberay

A toolkit to run Ray applications on Kubernetes
Apache License 2.0
1.14k stars 367 forks source link

[Bug] can not set submitter pod restart times #2393

Open xiaoyu1095 opened 2 hours ago

xiaoyu1095 commented 2 hours ago

Search before asking

KubeRay Component

ray-operator

What happened + What you expected to happen

In my scenario, if the execution fails, it should be considered a failure and no retries are needed. However, I cannot disable retries entirely.

Reproduction script

submitterPodTemplate: spec: restartPolicy: Never containers:

image

Anything else

No response

Are you willing to submit a PR?

xiaoyu1095 commented 2 hours ago

apiVersion: ray.io/v1 kind: RayJob metadata: name: test spec: entrypoint: python main.py jobId: "123" submitterPodTemplate: spec: restartPolicy: Never containers:

andrewsykim commented 1 hour ago

Try setting submitterConfig.backoffLimit = 0