Skip to content

Commit

Permalink
restart the container on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nagar-ajay committed Mar 14, 2023
1 parent 7067269 commit 214a736
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/python/test/e2e/test_e2e_xgboostjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_sdk_e2e_with_gang_scheduling():

master = V1ReplicaSpec(
replicas=1,
restart_policy="Never",
restart_policy="OnFailure",
template=V1PodTemplateSpec(spec=V1PodSpec(
containers=[container],
scheduler_name=get_pod_spec_scheduler_name(GANG_SCHEDULER_NAME),
Expand All @@ -60,7 +60,7 @@ def test_sdk_e2e_with_gang_scheduling():

worker = V1ReplicaSpec(
replicas=1,
restart_policy="Never",
restart_policy="OnFailure",
template=V1PodTemplateSpec(spec=V1PodSpec(
containers=[container],
scheduler_name=get_pod_spec_scheduler_name(GANG_SCHEDULER_NAME),
Expand Down Expand Up @@ -104,13 +104,13 @@ def test_sdk_e2e():

master = V1ReplicaSpec(
replicas=1,
restart_policy="Never",
restart_policy="OnFailure",
template=V1PodTemplateSpec(spec=V1PodSpec(containers=[container])),
)

worker = V1ReplicaSpec(
replicas=1,
restart_policy="Never",
restart_policy="OnFailure",
template=V1PodTemplateSpec(spec=V1PodSpec(containers=[container])),
)

Expand Down

0 comments on commit 214a736

Please sign in to comment.