Skip to content

Commit

Permalink
Set default restart_policy to Never
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Feb 12, 2025
1 parent c9a229a commit 9226bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/v1beta1/kubeflow/katib/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def get_trial_template_with_job(
"""

# Restart policy must be set for the Job.
pod_template_spec.spec.restart_policy = "OnFailure" # type: ignore
pod_template_spec.spec.restart_policy = "Never" # type: ignore

# Use PyTorchJob as a Trial spec.
job = client.V1Job(
Expand Down

0 comments on commit 9226bf5

Please sign in to comment.