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

Set scheduler restart policy to Always #367

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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