查询自定义任务
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | GetJob | 要执行的操作,取值:GetJob。 |
Version | String | 是 | 2024-07-01 | API的版本,取值:2024-07-01。 |
Id | String | 是 | . | ID |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
Id | String | . | ID |
Name | String | . | 名称 |
CreatedBy | String | . | 创建者 |
Description | String | . | 描述 |
CreateTime | String | 2024-07-01T00:00:00Z | 创建时间 |
UpdateTime | String | 2024-07-01T00:00:00Z | 最后修改时间 |
InitialId | String | t-20240701120001-g3zqt | 任务创建时,对应的初始化任务的 Id |
RuntimeConfig | Object | . | 运行配置 |
ResourceConfig | Object | . | 资源配置 |
PrivateNetworkConfig | Object | . | 私有网络配置 |
StorageConfig | Object | . | 存储配置 |
ObservableConfig | Object | . | 可观测配置 |
DiagnoseConfig | Array of Object | . | 诊断配置 |
RetryConfig | Object | . | 重试配置 |
Status | Object | . | 任务状态 |
{ "Id": "t-20250314214625-*****" }
{ "CreateTime": "2025-03-14T13:46:26Z", "CreatedBy": "", "Description": "", "Id": "t-20250314214625-*****", "InitialId": "t-20250314214625-*****", "Name": "自定义任务名称", "ObservableConfig": {}, "ResourceConfig": { "HoldingTimeSeconds": 0, "MaxRuntimeSeconds": 864000, "ResourceQueueId": "q-20250314181630-*****", "Roles": [ { "Name": "worker", "NodeAffinitySpec": {}, "Replicas": 1, "Resource": { "InstanceTypeId": "ml.hpcpni3ln.45xlarge", "Type": "Preset", "ZoneId": "" } }, { "Name": "chief", "Replicas": 0, "Resource": { "InstanceTypeId": "", "Type": "Preset", "ZoneId": "" } }, { "Name": "ps", "Replicas": 0, "Resource": { "InstanceTypeId": "", "Type": "Preset", "ZoneId": "" } }, { "Name": "evaluator", "Replicas": 0, "Resource": { "InstanceTypeId": "", "Type": "Preset", "ZoneId": "" } } ] }, "RuntimeConfig": { "Command": "sleep 100s", "Framework": "TensorFlow", "Image": { "Type": "Prebuild", "Url": "vemlp-cn-beijing.cr.volces.com/preset-images/python:3.10" } }, "Status": { "EndTime": "2025-03-14T13:57:26Z", "HoldingEndTime": "", "Message": "all pods(1) are succeeded", "RetriedTimes": 0, "SecondaryState": "", "StartTime": "2025-03-14T13:55:26Z", "State": "Completed" }, "StorageConfig": {}, "UpdateTime": "2025-03-14T13:57:26Z" }
您可访问公共错误码,获取更多错误码信息。