github.com/uchennaokeke444/nomad@v0.11.8/scheduler/generic_sched_oss.go (about) 1 // +build !ent 2 3 package scheduler 4 5 import "github.com/hashicorp/nomad/nomad/structs" 6 7 // selectNextOption calls the stack to get a node for placement 8 func (s *GenericScheduler) selectNextOption(tg *structs.TaskGroup, selectOptions *SelectOptions) *RankedNode { 9 return s.stack.Select(tg, selectOptions) 10 } 11 12 // handlePreemptions sets relevant preeemption related fields. In OSS this is a no op. 13 func (s *GenericScheduler) handlePreemptions(option *RankedNode, alloc *structs.Allocation, missing placementResult) { 14 15 }