Head

class mosaic.runtime.head.Head(**kwargs)[source]

Bases: Runtime

The head is the main runtime, where the user entry point is executed.

async init(**kwargs)[source]

Asynchronous counterpart of __init__.

Parameters:

kwargs

async init_monitor(**kwargs)[source]

Init monitor runtime.

Parameters:

kwargs

is_head = True
set_logger()[source]

Set up logging.

set_profiler()[source]

Set up profiling.

async stop(sender_id=None)[source]

Stop runtime.

Parameters:

sender_id (str) –