Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Set scheduler restart policy to Always (#367)
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Stadlbauer <[email protected]>
  • Loading branch information
bstadlbauer authored Jun 29, 2023
1 parent df62599 commit f7b37aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/tasks/plugins/k8s/dask/dask.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func createSchedulerSpec(cluster plugins.DaskScheduler, clusterName string, defa

return &daskAPI.SchedulerSpec{
Spec: v1.PodSpec{
RestartPolicy: v1.RestartPolicyNever,
RestartPolicy: v1.RestartPolicyAlways,
Containers: []v1.Container{
{
Name: "scheduler",
Expand Down
2 changes: 1 addition & 1 deletion go/tasks/plugins/k8s/dask/dask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func TestBuildResourceDaskHappyPath(t *testing.T) {
Protocol: "TCP",
},
}
assert.Equal(t, v1.RestartPolicyNever, schedulerSpec.RestartPolicy)
assert.Equal(t, v1.RestartPolicyAlways, schedulerSpec.RestartPolicy)
assert.Equal(t, defaultTestImage, schedulerSpec.Containers[0].Image)
assert.Equal(t, defaultResources, schedulerSpec.Containers[0].Resources)
assert.Equal(t, []string{"dask-scheduler"}, schedulerSpec.Containers[0].Args)
Expand Down

0 comments on commit f7b37aa

Please sign in to comment.