queue

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiQueueCache

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

ApiQueueCache is an implementation of QueueCache that fetches queues from the Armada API. We cache the queues in memory so that we can continue scheduling even if the API is unavailable

func NewQueueCache

func NewQueueCache(apiClient api.SubmitClient, updateFrequency time.Duration) *ApiQueueCache

func (*ApiQueueCache) GetAll

func (c *ApiQueueCache) GetAll(_ *armadacontext.Context) ([]*api.Queue, error)

func (*ApiQueueCache) Run

type QueueCache

type QueueCache interface {
	// Get returns all available queues
	GetAll(ctx *armadacontext.Context) ([]*api.Queue, error)
}

QueueCache is an in-memory cache of available queues

Jump to

Keyboard shortcuts

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