---
title: JobResult
sidebar_label: JobResult
sidebar_position: 1
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lium.io/llms.txt
> Use this file to discover all available pages before exploring further.
>
> Lium (lium.io) is a GPU rental marketplace: rent NVIDIA GPUs by the hour, billed per second.

<!-- Generated by scripts/generate_sdk_reference.py. Do not edit directly. -->

# JobResult

```python
from lium.sdk import JobResult
```

Defined in `lium.sdk.bounded_job`.

What [`run_job()`](/developers/sdk/reference/client/lium#run_job) did. ``to_dict()`` is JSON-ready.

``cleanup`` is ``"removed"`` (the pod was deleted and is gone from the pod list),
``"scheduled"`` (its absence was not confirmed; the acknowledged server-side removal at
``removal_scheduled_at`` stands), ``"not_rented"`` (the rent was refused), or ``"unknown"``
(neither removal nor a schedule was confirmed, or a rent whose answer was lost may still have
created a pod named ``name``: check [`ps()`](/developers/sdk/reference/client/lium#ps)). ``removal_scheduled_at`` is set only once the
server acknowledged the schedule. ``cost_usd`` is what the billing statement shows for the pod,
read only after a confirmed removal (``None`` otherwise, or when the statement does not list it
yet); ``estimated_cost_usd`` is the rent's hourly price times the seconds from just before the
rent request to removal (to ``removal_scheduled_at`` when removal is unconfirmed).

```python
JobResult(
    status: str,
    name: str,
    exit_code: Optional[int] = None,
    stdout: str = '',
    stderr: str = '',
    error: Optional[str] = None,
    pod_id: Optional[str] = None,
    price_per_hour: Optional[float] = None,
    removal_scheduled_at: Optional[str] = None,
    outputs: Dict[str, str] = <factory>,
    missing_outputs: Dict[str, str] = <factory>,
    cleanup: str = 'not_rented',
    cost_usd: Optional[float] = None,
    estimated_cost_usd: Optional[float] = None,
    seconds: float = 0.0
)
```

## Fields

| Name | Type | Default |
| --- | --- | --- |
| <a id="status"></a>`status` | str |  |
| <a id="name"></a>`name` | str |  |
| <a id="exit_code"></a>`exit_code` | Optional[int] | `None` |
| <a id="stdout"></a>`stdout` | str | `''` |
| <a id="stderr"></a>`stderr` | str | `''` |
| <a id="error"></a>`error` | Optional[str] | `None` |
| <a id="pod_id"></a>`pod_id` | Optional[str] | `None` |
| <a id="price_per_hour"></a>`price_per_hour` | Optional[float] | `None` |
| <a id="removal_scheduled_at"></a>`removal_scheduled_at` | Optional[str] | `None` |
| <a id="outputs"></a>`outputs` | Dict[str, str] |  |
| <a id="missing_outputs"></a>`missing_outputs` | Dict[str, str] |  |
| <a id="cleanup"></a>`cleanup` | str | `'not_rented'` |
| <a id="cost_usd"></a>`cost_usd` | Optional[float] | `None` |
| <a id="estimated_cost_usd"></a>`estimated_cost_usd` | Optional[float] | `None` |
| <a id="seconds"></a>`seconds` | float | `0.0` |

## Properties

| Name | Type | Description |
| --- | --- | --- |
| <a id="ok"></a>`ok` | bool |  |

## Methods

| Method | Description |
| --- | --- |
| [`to_dict`](#to_dict) |  |

### to_dict

```python
def to_dict() -> Dict[str, Any]:
```
