查询execution
get_execution(execution_id)
功能描述
查询特定execution执行结果。
输入参数
| 参数 | 是否必选 | 参数类型 | 参数描述 |
|---|---|---|---|
| execution_id | 是 | String | execution id,create_execution接口的返回值。 |
返回值
响应中含有一个execution结构,建议通过response.json()方式获取返回值,结构如表1所示。
| 参数 | 参数类型 | 参数描述 |
|---|---|---|
| execution | JSONObject | execution基本属性,详见表3。 |
| metadata | JSONObject | cromwell metadata |
| status | JSONObject | 节点状态,详见表4, 如果为空,则不返回。 |
| enterprise_project | JSONObjec | 企业项目,详见表表2 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| guid | String | execution guid。 |
| name | String | execution名称。 |
| namespace | String | execution所属命名空间。 |
| project_id | String | execution所属项目ID。 |
| domain_id | String | execution所属租户ID。 |
| status | String | execution状态:
|
| workflow_name | String | 若使用GCS中的wdl流程提交,该字段表示流程名称;若使用其他方式提交,该字段表示wdl文件名称 |
| wdl_name | String | 该execution所使用的workflow的名称 |
| workflow_id | String | 若用GCS中的wdl流程提交任务,该字段表示该流程的ID |
| inputs_json | String | execution输入。 |
| outputs_json | String | execution输出。 |
| image | String | 流程拓扑图。 |
| time_duration | int | 处理持续时间。 |
| target | String | execution的运行环境 |
| create_at | String | execution创建时间。 |
| update_at | String | execution更新时间。 |
| task_status | String | 任务状态,详见表4, 如果为空,则不返回。 |
| engine_deployment | String | cromwell对应的无状态负载名称 |
| env_guid | String | execution执行环境id |
| node_number | int | 流程任务数量 |
| metadata_json | String | cromwell metadata |
| resources | Dictionary | execution消耗的资源(CPU,Memory,GPU等)以及时间比,该时间比表示execution的实际执行时间所占总时间(包括执行时间、调度时间、失败处理时间等时间总和)的百分比,其中百分号已省略。 |
| tae_resources | Dictionary | execution重试消耗的资源(CPU,Memory,GPU等)以及时间比,该时间比表示execution的重试执行时间所占总时间(包括重试执行时间、调度时间、失败处理时间等时间总和)的百分比,其中百分号已省略。 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| node_number | int | excution中步骤数量。 |
| finished_node_number | int | 已完成步骤个数。 |
| actual_node_status | JSONObject,详见表5 | 各步骤的状态。 |
| 参数 | 参数类型 | 描述 |
|---|---|---|
| name | String | 节点名称。 |
| status | String | 该操作步骤的执行状态:
|
| sub_job_num | int | 子job的数量。 |
| finished_sub_job_num | int | 已完成子job的数量。 |
| sub_job_status | map | 子job的状态:
|
| time_duration | int | 持续时间。 |
| resources | map | job在持续时间内的资源消耗情况:
|