scheduler

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package scheduler holds the main task scheculing for the robot system. It watches for newly added builds, subjects and workers, and schedules jobs to fill in the holes in the testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tick

func Tick(ctx context.Context, managers *monitor.Managers, data *monitor.Data) []error

Tick can be called to schedule new actions based on the current data set. It looks at the data to find holes that need actions to fill, and then picks which ones it thinks should be next based on the available workers. It is intended to be called in the update function of a monitor. See monitor.Run for more details. Blocking will prevent updates of the data store, so the function will try to schedule tasks to idle workers only returning quickly on the assumption it will be ticked again as soon as the data changes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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