aistore.sdk.dsort.core
Module Contents
Classes
API
Class for managing jobs for the dSort extension: https://github.com/NVIDIA/aistore/blob/main/docs/cli/dsort.md
dsort_id
Return dSort job id
Abort a dSort job
Get info for a dsort job Returns: Dictionary of job info for all jobs associated with this dsort
Start a dSort job with a provided spec file location or defined framework
Parameters:
spec
Path to the spec file or a DsortFramework instance
Returns: str
dSort job ID
Wait for a dSort job to finish
Parameters:
timeout
The maximum time to wait for the job, in seconds. Default timeout is 5 minutes.
verbose
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 errorrequests.ConnectionTimeout: Timed out connecting to AIStorerequests.ReadTimeout: Timed out waiting response from AIStoreerrors.Timeout: Timeout while waiting for the job to finish