buildgrid.bot.hardware.worker module

class buildgrid.bot.hardware.worker.Worker(properties=None, configs=None)

Bases: object

Describes a worker, which is a list of one of more devices and the connextions between them. A device could be a computer, a phone or a GPU.

The first device is known as the Primary Device which is responsible for executing commands. All other devices are known as Attatched Devices and must be controlled by the Primary Device.

property configs

Returns configurations supported by Worker.

property properties

Returns properties supported by Worker.

add_device(device)

Adds a class:Device to this instance. First device added should be the Primary Device.

get_pb2()

Returns the protobuffer representation of a Device.