job

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveClustersFunc

type ActiveClustersFunc func() []model.ClusterInfo

type ActiveQueuesFunc

type ActiveQueuesFunc func() []model.Queue

type ClusterRuntimeInfo added in v0.14.3

type ClusterRuntimeInfo struct {
	Name       string
	StopCh     chan struct{}
	RuntimeSvc runtime_v2.RuntimeService
}

ClusterRuntimeInfo defines cluster runtime

func NewClusterRuntimeInfo added in v0.14.3

func NewClusterRuntimeInfo(name string, r runtime_v2.RuntimeService) *ClusterRuntimeInfo

type ClusterRuntimes added in v0.14.3

type ClusterRuntimes struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ClusterRuntimes contains cluster runtimes

func NewClusterRuntimes added in v0.14.3

func NewClusterRuntimes() ClusterRuntimes

func (*ClusterRuntimes) Delete added in v0.14.3

func (cr *ClusterRuntimes) Delete(id api.ClusterID)

func (*ClusterRuntimes) Get added in v0.14.3

func (*ClusterRuntimes) Store added in v0.14.3

func (cr *ClusterRuntimes) Store(id api.ClusterID, runtimeInfo *ClusterRuntimeInfo)

type JobManagerImpl

type JobManagerImpl struct {
	// contains filtered or unexported fields
}

func NewJobManagerImpl

func NewJobManagerImpl() (*JobManagerImpl, error)

func (*JobManagerImpl) GetQueue

func (m *JobManagerImpl) GetQueue(queueID api.QueueID) (*clusterQueue, bool)

func (*JobManagerImpl) Start

func (m *JobManagerImpl) Start(activeClusters ActiveClustersFunc, activeQueueJobs QueueJobsFunc)

type QueueJobsFunc

type QueueJobsFunc func(string, []schema.JobStatus) []model.Job

Jump to

Keyboard shortcuts

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