launch.actions.shutdown_action module

Module for the Shutdown action.

class launch.actions.shutdown_action.Shutdown[source]

Bases: EmitEvent

Action that shuts down a launched system by emitting Shutdown when executed.

__init__(*, reason: str = 'reason not given', **kwargs)[source]

Create an EmitEvent action.

execute(context: LaunchContext)[source]

Execute the action.

classmethod parse(entity: Entity, parser: Parser)[source]

Return Shutdown action and kwargs for constructing it.