From 86a732e4a8cb689c7ea9a4e930967ff9e6c1c413 Mon Sep 17 00:00:00 2001 From: luke-lombardi <33990301+luke-lombardi@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:46:06 -0500 Subject: [PATCH] fix typo --- pkg/scheduler/pool_manager.go | 4 ++-- pkg/scheduler/pool_manager_test.go | 2 +- pkg/scheduler/scheduler_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/scheduler/pool_manager.go b/pkg/scheduler/pool_manager.go index ceec67c3f..3a997f0d5 100644 --- a/pkg/scheduler/pool_manager.go +++ b/pkg/scheduler/pool_manager.go @@ -34,8 +34,8 @@ func (m *WorkerPoolManager) GetPool(name string) (*WorkerPool, bool) { type poolFilters struct { GPUType string - // Preemptible *bool - // TODO: add preemptible filter back once we have better ways of handling pool state + // Preemptable *bool + // TODO: add preemptable filter back once we have better ways of handling pool state // (i.e. if a worker is not appearing in a certain pool) } diff --git a/pkg/scheduler/pool_manager_test.go b/pkg/scheduler/pool_manager_test.go index 37f906b2c..519eccbe3 100644 --- a/pkg/scheduler/pool_manager_test.go +++ b/pkg/scheduler/pool_manager_test.go @@ -61,7 +61,7 @@ func TestWorkerPoolManager_GetPoolByFilters(t *testing.T) { manager := NewWorkerPoolManager() controller := &LocalWorkerPoolControllerForTest{ - preemptible: true, + preemptable: true, } // Set up test pools with different configurations diff --git a/pkg/scheduler/scheduler_test.go b/pkg/scheduler/scheduler_test.go index c883b38b8..4a1aa87a6 100644 --- a/pkg/scheduler/scheduler_test.go +++ b/pkg/scheduler/scheduler_test.go @@ -77,7 +77,7 @@ type LocalWorkerPoolControllerForTest struct { name string config types.AppConfig workerRepo repo.WorkerRepository - preemptible bool + preemptable bool } func (wpc *LocalWorkerPoolControllerForTest) Context() context.Context { @@ -85,7 +85,7 @@ func (wpc *LocalWorkerPoolControllerForTest) Context() context.Context { } func (wpc *LocalWorkerPoolControllerForTest) IsPreemptable() bool { - return wpc.preemptible + return wpc.preemptable } func (wpc *LocalWorkerPoolControllerForTest) generateWorkerId() string {