scheduler

package
v0.0.0-...-2637cd7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBuildSave       = errors.New("unable to save build to database")
	ErrBuildInitFailed = errors.New("build init ended with error")
)
View Source
var (
	ErrNoAvailableWorker                 = errors.New("no worker is available")
	ErrNoAvailableWorkerForConfiguration = errors.New("no worker is available for given configuration")
)

Functions

func Init

func Init()

func Run

func Run()

func SelectWorker

func SelectWorker(cfg model.PipelineConfig, workers []model.Worker) (model.Worker, error)

Types

type Context

type Context struct{}

func (*Context) AddToQueue

func (s *Context) AddToQueue(ctx build.Context)

func (*Context) ChangeInWorkers

func (s *Context) ChangeInWorkers()

func (*Context) Finished

func (s *Context) Finished(ctx any)

func (*Context) Schedule

func (s *Context) Schedule(buildID uuid.UUID)

Jump to

Keyboard shortcuts

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