ExecResult#

class ray.experimental.sandbox.ExecResult(exit_code: int, stdout: str, stderr: str, duration_seconds: float, output: bytes | None = None)[source]#

Bases: object

Result of executing a command inside a Sandbox.

exit_code#

Command process exit code (0 indicates success).

Type:

int

stdout#

Standard output text string.

Type:

str

stderr#

Standard error text string.

Type:

str

duration_seconds#

Command execution time in seconds.

Type:

float

output#

With combine_output, raw stdout and stderr bytes in write order; stdout and stderr are then empty. Otherwise None.

Type:

bytes | None

PublicAPI (alpha): This API is in alpha and may change before becoming stable.

property duration_ms: float#

Execution duration in milliseconds.