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:
- property execution_id: str¶
Underlying execution identifier.
- Returns:
Unique execution ID
- Return type:
- property exit_code: int | None¶
Process exit code, or
Noneif unavailable.- Returns:
Exit status code
- Return type:
int | None
- property success: bool¶
Whether the process exited successfully (exit code
0).- Returns:
Trueif the exit code is0- Return type:
- property failed: bool¶
Whether the process exited with a non-zero exit code.
- Returns:
Trueif the exit code is non-zero- Return type:
- async stdout(num_lines=None)[source]¶
Return captured standard output, streaming full output if truncated.
- async stderr(num_lines=None)[source]¶
Return captured standard error, streaming full output if truncated.
- property result: DevboxAsyncExecutionDetailView¶
Get the raw execution result.
- Returns:
Raw execution result
- Return type: