> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/aistore/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/aistore/_mcp/server.

# aistore.sdk.dsort.core

## Module Contents

### Classes

| Name                                     | Description                                                                                                                                                                     |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`Dsort`](#aistore-sdk-dsort-core-Dsort) | Class for managing jobs for the dSort extension: [https://github.com/NVIDIA/aistore/blob/main/docs/cli/dsort.md](https://github.com/NVIDIA/aistore/blob/main/docs/cli/dsort.md) |

### API

```python
class aistore.sdk.dsort.core.Dsort(
    client: aistore.sdk.request_client.RequestClient,
    dsort_id: str = ''
)
```

Class for managing jobs for the dSort extension: [https://github.com/NVIDIA/aistore/blob/main/docs/cli/dsort.md](https://github.com/NVIDIA/aistore/blob/main/docs/cli/dsort.md)

Return dSort job id

```python
aistore.sdk.dsort.core.Dsort.abort()
```

Abort a dSort job

```python
aistore.sdk.dsort.core.Dsort.get_job_info() -> typing.Dict[str, aistore.sdk.dsort.types.JobInfo]
```

Get info for a dsort job
Returns:
Dictionary of job info for all jobs associated with this dsort

```python
aistore.sdk.dsort.core.Dsort.start(
    spec: typing.Union[str, pathlib.Path, aistore.sdk.dsort.framework.DsortFramework]
) -> str
```

Start a dSort job with a provided spec file location or defined framework

**Parameters:**

Path to the spec file or a DsortFramework instance

**Returns:** `str`

dSort job ID

```python
aistore.sdk.dsort.core.Dsort.wait(
    timeout: int = DEFAULT_DSORT_WAIT_TIMEOUT,
    verbose: bool = True
) -> aistore.sdk.wait_result.WaitResult
```

Wait for a dSort job to finish

**Parameters:**

The maximum time to wait for the job, in seconds. Default timeout is 5 minutes.

Whether to log wait status to standard output

**Returns:** `WaitResult`

Outcome of the wait operation

**Raises:**

* `requests.RequestException`: "There was an ambiguous exception that occurred while handling..."
* `requests.ConnectionError`: Connection error
* `requests.ConnectionTimeout`: Timed out connecting to AIStore
* `requests.ReadTimeout`: Timed out waiting response from AIStore
* `errors.Timeout`: Timeout while waiting for the job to finish