msa.builtins.command package

Submodules

msa.builtins.command.events module

class msa.builtins.command.events.QuitCommandEvent[source]

Bases: msa.builtins.command_registry.events.CommandEvent

A command event handled by QuitHandler, shuts down msa

msa.builtins.command.handlers module

class msa.builtins.command.handlers.QuitHandler(loop: asyncio.events.AbstractEventLoop, event_queue: asyncio.queues.Queue, logger: logging.Logger, config: Optional[Dict[KT, VT]] = None)[source]

Bases: msa.core.event_handler.EventHandler

Checks for QuitCommnadEvents tells the supervisor to quit upon finding one

handle()[source]

An abstract method which must be overwritten. Once the system is started, the handle method will be called repeatedly until the system shuts down. The handler must be non-blocking.

init()[source]

An optional initialization hook, may be used for executing setup code before all handlers have benn fully started.

Module contents