minitrino.core.exec.utils module#
Command execution utilities for Minitrino clusters.
- minitrino.core.exec.utils.detect_container_shell(ctx: MinitrinoContext, container: MinitrinoContainer | str, user: str = 'root') str[source][source]#
Detect the shell in the container.
Waits up to 10 seconds for the container to accept commands.
- Parameters:
ctx (MinitrinoContext) – The Minitrino context.
container (MinitrinoContainer | str) – The container (or fully qualified container name) to detect the shell for.
user (str, optional) – The user to execute shell detection as (default is “root”).
- Raises:
MinitrinoError – If the container does not accept commands within 10 seconds, or no shell is found.