cache

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueCache

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

func NewQueueCache

func NewQueueCache(
	queueRepository repository.QueueRepository,
	jobRepository repository.JobRepository,
	schedulingInfoRepository repository.SchedulingInfoRepository,
) *QueueCache

func (*QueueCache) GetQueueMetrics added in v0.1.32

func (c *QueueCache) GetQueueMetrics(queueName string) *metrics.QueueMetrics

func (*QueueCache) PeekClusterQueue

func (c *QueueCache) PeekClusterQueue(clusterId, queue string, limit int64) ([]*api.Job, error)

func (*QueueCache) Refresh

func (c *QueueCache) Refresh()

func (*QueueCache) TryLeaseJobs

func (c *QueueCache) TryLeaseJobs(clusterId string, queue string, jobs []*api.Job) ([]*api.Job, error)

Jump to

Keyboard shortcuts

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