unitscheduler

package
v0.0.0-...-dcfb068 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL