scheduler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

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