util

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Permit indicates that plugin callback function permits job to be inqueue, pipelined, or other status
	Permit = 1
	// Abstain indicates that plugin callback function abstains in voting job to be inqueue, pipelined, or other status
	Abstain = 0
	// Reject indicates that plugin callback function rejects job to be inqueue, pipelined, or other status
	Reject = -1
)

Variables

This section is empty.

Functions

func CalculateAllocatedTaskNum added in v1.6.0

func CalculateAllocatedTaskNum(job *api.JobInfo) int

CalculateAllocatedTaskNum returns allocated resource num for given job

func GetAllocatedResource added in v1.5.1

func GetAllocatedResource(job *api.JobInfo) *api.Resource

GetAllocatedResource returns allocated resource for given job

func GetInqueueResource added in v1.5.1

func GetInqueueResource(job *api.JobInfo, allocated *api.Resource) *api.Resource

GetInqueueResource returns reserved resource for running job whose part of pods have not been allocated resource.

func NormalizeScore added in v1.4.0

func NormalizeScore(maxPriority int64, reverse bool, scores []api.ScoredNode)

NormalizeScore normalizes the score for each filteredNode

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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