Documentation ¶
Overview ¶
Package job holds code for managing task execution in robot. The primary concepts are the operations, the device on which jobs run, and the worker which is responsible for running jobs on a device. Devices are persistent, and might not be active, workers only exist for live devices.
Index ¶
Constants ¶
View Source
const ( UnknownOperation = Operation_UnknownOperation Host = Operation_Host Trace = Operation_Trace Report = Operation_Report Replay = Operation_Replay )
View Source
const ( UnknownStatus = Status_UnknownStatus Running = Status_Running Succeeded = Status_Succeeded Failed = Status_Failed )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceHandler ¶
DeviceHandler is a function used to consume a stream of Devices.
type Manager ¶
type Manager interface { // SearchDevices delivers matching workers to the supplied handler. SearchDevices(ctx context.Context, query *search.Query, handler DeviceHandler) error // SearchWorkers delivers matching workers to the supplied handler. SearchWorkers(ctx context.Context, query *search.Query, handler WorkerHandler) error // GetWorker finds or adds a worker. GetWorker(ctx context.Context, host *device.Instance, target *device.Instance, op Operation) (*Worker, error) }
Manager is the abstract interface to the job manager.
type WorkerHandler ¶
WorkerHandler is a function used to consume a stream of Workers.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package worker is a set of helpers for implementing common features of robot workers (see package job for more information about what a worker is).
|
Package worker is a set of helpers for implementing common features of robot workers (see package job for more information about what a worker is). |
Click to show internal directories.
Click to hide internal directories.