job

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 11 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() []models.ClusterInfo

type ActiveQueuesFunc

type ActiveQueuesFunc func() []models.Queue

type ClusterRuntimeInfo added in v0.14.3

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

ClusterRuntimeInfo defines cluster runtime

func NewClusterRuntimeInfo added in v0.14.3

func NewClusterRuntimeInfo(name string, r runtime.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) Run

func (m *JobManagerImpl) Run(runtimeService runtime.RuntimeService, stopCh <-chan struct{}, clusterID api.ClusterID)

func (*JobManagerImpl) Start

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

type QueueJobsFunc

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

Directories

Path Synopsis
queue

Jump to

Keyboard shortcuts

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