Help us shape the future of Go! Take the 2026 Go Developer Survey

scheduler

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0, Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	New planStatus = iota
	InProgress
	Finished
	Error
	Invalid
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ScanInterval        time.Duration
	PlanScanConcurrency int
	MaxProgressFileAge  time.Duration
	AllowedUsers        string
	IgnoredUserPattern  string
}

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(f *flag.FlagSet)

type Scheduler

type Scheduler struct {
	services.Service
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(cfg Config, scfg blocksconvert.SharedConfig, l log.Logger, reg prometheus.Registerer, http *mux.Router, grpcServ *grpc.Server) (*Scheduler, error)

func (*Scheduler) NextPlan

Returns next plan that builder should work on.

Jump to

Keyboard shortcuts

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