Execution Result

The AsyncExecutionResult class represents the result of a completed command execution.

Async execution result wrapper for completed commands.

class runloop_api_client.sdk.async_execution_result.AsyncExecutionResult(client, devbox_id, result)[source]

Completed asynchronous command execution result.

Provides convenient helpers to inspect process exit status and captured output.

property devbox_id: str

Associated devbox identifier.

Returns:

Devbox ID where the command executed

Return type:

str

property execution_id: str

Underlying execution identifier.

Returns:

Unique execution ID

Return type:

str

property exit_code: int | None

Process exit code, or None if unavailable.

Returns:

Exit status code

Return type:

int | None

property success: bool

Whether the process exited successfully (exit code 0).

Returns:

True if the exit code is 0

Return type:

bool

property failed: bool

Whether the process exited with a non-zero exit code.

Returns:

True if the exit code is non-zero

Return type:

bool

async stdout(num_lines=None)[source]

Return captured standard output, streaming full output if truncated.

Parameters:

num_lines (Optional[int], optional) – Optional number of lines to return from the end (most recent), defaults to None

Returns:

Stdout content, optionally limited to the last num_lines lines

Return type:

str

async stderr(num_lines=None)[source]

Return captured standard error, streaming full output if truncated.

Parameters:

num_lines (Optional[int], optional) – Optional number of lines to return from the end (most recent), defaults to None

Returns:

Stderr content, optionally limited to the last num_lines lines

Return type:

str

property result: DevboxAsyncExecutionDetailView

Get the raw execution result.

Returns:

Raw execution result

Return type:

DevboxAsyncExecutionDetailView