titanfe.apps.control_peer.runner module

Encapsulate brick runner related things

class titanfe.apps.control_peer.runner.BrickRunner(brick_instance, on_termination_cb=<function BrickRunner.<lambda>>)[source]

Bases: object

The BrickRunner can be used to start brick runner processes and hold corresponding data

Parameters:

controlpeer_address (NetworkAddress) – the address on which the control peer is listening

async check_termination()[source]

do cyclic checks for an exitcode of the brick runner’s process to detect it’s termination

start()[source]

Start a new brick runner process

async stop()[source]

request and await runner termination