Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RetryAttempts is the maximum times we will retry for one operation (probably an API call) RetryAttempts = 3 // RetryWaitTime is the waiting time duration before we retry for a failed operation RetryWaitTime = 1 * time.Second )
View Source
const FailToScheduleUnit = "FailToScheduleUnit"
Variables ¶
This section is empty.
Functions ¶
func NewUnitScheduler ¶
func NewUnitScheduler( schedulerName string, switchType framework.SwitchType, subCluster string, disablePreemption bool, client clientset.Interface, crdClient godelclient.Interface, podLister corelisters.PodLister, pgLister v1alpha1.PodGroupLister, cache cache.SchedulerCache, snapshot *cache.Snapshot, queue schedulingqueue.SchedulingQueue, reconciler *reconciler.FailedTaskReconciler, podScheduler core.PodScheduler, clock clock.Clock, recorder events.EventRecorder, ) core.UnitScheduler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.