查询任务详情
功能介绍
获取指定任务的结果详情。
URI
GET /v2/{project_id}/optverse/irregular-textile/tasks/{task_id}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
project_id |
是 |
String |
用户项目ID,获取方法请参见获取项目ID。 |
task_id |
是 |
String |
任务编号 |
请求参数
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
X-Auth-Token |
是 |
String |
用户凭证。 |
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
task_id |
String |
任务编号。 |
input_json |
String |
输入数据,当前为null |
obs_input_url |
String |
Obs桶中输入文件地址,当前为null |
obs_output_url |
String |
Obs桶中输出文件地址,当前为null |
status |
String |
任务运行状态。(Pending,Running, Failed, Succeeded) |
progress |
String |
任务进度,当前为null |
output_json |
任务处理结果,json格式,任务状态为finished时携带。具体数据结构参见IrregularTextileResultDetail |
|
output_file_base64 |
String |
当前为null |
start_time |
String |
任务开始时间 |
end_time |
String |
任务结束时间 |
create_time |
String |
任务创建时间 |
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
任务编号。 |
time |
Double |
任务运行时长,单位秒。 |
ratio |
Double |
排版利用率 |
order |
String |
订单名。 |
length |
Double |
使用面料长度。 |
pieces |
裁片排版位置定义。 |
响应示例
状态码: 200
OK
{ "task_id": "37210xxxxxx511edb57c0255acxxxxxx", "input_json": null, "obs_input_url": null, "obs_output_url": null, "status": "Succeeded", "progress": null, "output_json": { "gap_mode": 0, "id": "fu", "length": 14.0, "name": "fu", "order": "fu", "pieces": [ { "angle": 180.0, "box": [ { "x": 1.110223024560533e-16, "y": 188.54000844217342 }, { "x": 10.0, "y": 202.54000844217342 } ], "flip_x": 0, "flip_y": 0, "id": 9 }, { "angle": 90.0, "box": [ { "x": 1.110223024560533e-16, "y": 180.54018862422214 }, { "x": 9.0, "y": 190.54018862422214 } ], "flip_x": 0, "flip_y": 0, "id": 6 }, { "angle": 90.0, "box": [ { "x": 1.1102230246251565e-16, "y": 251.65141900241923 }, { "x": 9.0, "y": 265.65141900241923 } ], "flip_x": 0, "flip_y": 0, "id": 2 }, { "angle": 0.0, "box": [ { "x": 1.110223024560533e-16, "y": 216.54000844217342 }, { "x": 5.0, "y": 225.54000844217342 } ], "flip_x": 0, "flip_y": 0, "id": 7 }, { "angle": 180.0, "box": [ { "x": 1.1101552619893762e-16, "y": 24.0 }, { "x": 8.0, "y": 32.0 } ], "flip_x": 0, "flip_y": 0, "id": 10 }, { "angle": 270.0, "box": [ { "x": 5.551115123125783e-17, "y": 0.0 }, { "x": 10.0, "y": 10.0 } ], "flip_x": 0, "flip_y": 0, "id": 1 }, { "angle": 90.0, "box": [ { "x": 0.0, "y": 10.0 }, { "x": 12.0, "y": 24.0 } ], "flip_x": 0, "flip_y": 0, "id": 11 }, { "angle": 90.0, "box": [ { "x": 1.1102230246251565e-16, "y": 237.65161696798242 }, { "x": 14.0, "y": 251.65161696798242 } ], "flip_x": 0, "flip_y": 0, "id": 5 }, { "angle": 180.0, "box": [ { "x": 1.1102230246251565e-16, "y": 49.51013170928303 }, { "x": 10.0, "y": 59.51013170928303 } ], "flip_x": 0, "flip_y": 0, "id": 0 }, { "angle": 270.0, "box": [ { "x": 1.110223024560533e-16, "y": 202.54000844217342 }, { "x": 7.0, "y": 216.54000844217342 } ], "flip_x": 0, "flip_y": 0, "id": 3 }, { "angle": 270.0, "box": [ { "x": 1.1102230163533504e-16, "y": 25.020263418566074 }, { "x": 9.0, "y": 39.020263418566074 } ], "flip_x": 0, "flip_y": 0, "id": 4 }, { "angle": 0.0, "box": [ { "x": 1.110214554295684e-16, "y": 166.54018862422214 }, { "x": 14.0, "y": 180.54018862422214 } ], "flip_x": 0, "flip_y": 0, "id": 8 } ], "ratio": 0.75, "time": 1 } "output_file_base64": null, "start_time": "2023-10-16T13:24:14Z", "end_time": "2023-10-16T13:25:18Z", "create_time": "2023-10-16T13:24:13.858Z" }