更新时间:2021-12-17 GMT+08:00
分享

查询一个项目下任务的运行时间

功能介绍

根据项目ID和项目的批次号查询每个任务的运行时间。

URI

  • URI格式
    GET /softcomai/datalake/dataplan/v1.0/progress/history/queryRunStatics/{progressId}
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    progressId

    String

    项目ID。

请求

  • 请求样例
    GET https://ipaddr:port/softcomai/datalake/dataplan/v1.0/progress/history/queryRunStatics/P_20200806192450_367602193?batchNo=20200806211648_542545831
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    progressId

    String

    项目ID。

    batchNo

    String

    项目运行的批次号。

响应

  • 响应样例
    {
        "success": true,
        "errorMsg": null,
        "errorCode": null,
        "returnData": [
            {
                "batchNo": "20200806211648_542545831",
                "progressId": "P_20200806192450_367602193",
                "taskId": "3449620219151205032",
                "taskName": "数据建模_数据准备测试模型B",
                "taskLog": "TAG_STATUS={\"status\":\"running\"}\n2020-08-06 21:15:56.471 [main] INFO  - the current instance scene is [Cloud]\nTAG_STATUS={\"status\":\"datamodeling\"}\n2020-08-06 21:15:56.476 [main] INFO  - Section list is [queryModelDetail].\n2020-08-06 21:15:56.492 [main] INFO  - Query data model detail setup. entityIds=dr-0f47f5e2b5c3432da92036dc50cd3cf8.\n2020-08-06 21:15:56.496 [main] INFO  - GET url is https://100.95.145.153:9516/datarights/metadata/v1.0/mgr/ldm/entity/dr-0f47f5e2b5c3432da92036dc50cd3cf8\n2020-08-06 21:15:56.809 [main] INFO  - preEntityDirs=\n2020-08-06 21:15:56.809 [main] INFO  - After append current value. preEntityDirs=DataModeling/数据准备/\n2020-08-06 21:15:56.809 [main] INFO  - preEntityBusinessNames=\n2020-08-06 21:15:56.809 [main] INFO  - After append current value. preEntityBusinessNames=数据准备测试模型B\n2020-08-06 21:15:56.809 [main] INFO  - preEntities=\n2020-08-06 21:15:56.809 [main] INFO  - After append current value. preEntities=dataplan_modelB\nTAG_SCRIPT={\"entityBusinessName\":\"数据准备测试模型B\",\"entityContext\":\"dataplan_modelB|#\",\"entityAbsoluteDirectory\":\"DataModeling/数据准备/\",\"oldEntityName\":\"dataplan_modelB\",\"entityName\":\"dataplan_modelB\"}\nTAG_STATUS={\"costTime\":\"1\",\"status\":\"completed\"}\n",
                "tenantId": "051fb6cf4c00d33d0f85c003b99352a0",
                "status": "completed",
                "beginTime": "2020-08-06 21:15:56",
                "endTime": "2020-08-06 21:15:56",
                "costTime": "0",
                "orderId": "1"
            },
            {
                "batchNo": "20200806211648_542545831",
                "progressId": "P_20200806192450_367602193",
                "taskId": "1371881510597768123",
                "taskName": "数据建模_数据准备测试模型A",
                "taskLog": "TAG_STATUS={\"status\":\"running\"}\n2020-08-06 21:16:04.564 [main] INFO  - the current instance scene is [Cloud]\nTAG_STATUS={\"status\":\"datamodeling\"}\n2020-08-06 21:16:04.570 [main] INFO  - Section list is [queryModelDetail].\n2020-08-06 21:16:04.590 [main] INFO  - Query data model detail setup. entityIds=dr-ecbb6f141ac9434186c4fef820bfe1e1.\n2020-08-06 21:16:04.595 [main] INFO  - GET url is https://100.95.145.153:9516/datarights/metadata/v1.0/mgr/ldm/entity/dr-ecbb6f141ac9434186c4fef820bfe1e1\n2020-08-06 21:16:04.928 [main] INFO  - preEntityDirs=DataModeling/数据准备/\n2020-08-06 21:16:04.929 [main] INFO  - After append current value. preEntityDirs=DataModeling/数据准备/\n2020-08-06 21:16:04.929 [main] INFO  - preEntityBusinessNames=数据准备测试模型B\n2020-08-06 21:16:04.929 [main] INFO  - After append current value. preEntityBusinessNames=数据准备测试模型A\n2020-08-06 21:16:04.929 [main] INFO  - preEntities=dataplan_modelB\n2020-08-06 21:16:04.929 [main] INFO  - After append current value. preEntities=dataplan_modelA\nTAG_SCRIPT={\"entityBusinessName\":\"数据准备测试模型A\",\"entityContext\":\"dataplan_modelA|#\",\"entityAbsoluteDirectory\":\"DataModeling/数据准备/\",\"oldEntityName\":\"dataplan_modelA\",\"entityName\":\"dataplan_modelA\"}\nTAG_STATUS={\"costTime\":\"1\",\"status\":\"completed\"}\n",
                "tenantId": "051fb6cf4c00d33d0f85c003b99352a0",
                "status": "completed",
                "beginTime": "2020-08-06 21:16:04",
                "endTime": "2020-08-06 21:16:04",
                "costTime": "0",
                "orderId": "2"
            },
            {
                "batchNo": "20200806211648_542545831",
                "progressId": "P_20200806192450_367602193",
                "taskId": "311349791008367947",
                "taskName": "多数据集发布",
                "taskLog": "TAG_STATUS={\"status\":\"running\"}\n2020-08-06 21:16:12.477 [main] INFO  - the current instance scene is [Cloud]\n2020-08-06 21:16:12.482 [main] INFO  - The datasetsInfo param is [{\"datasetName\":\"数据准备测试模型B\",\"desc\":\"\",\"sourceDirUrl\":\"DataModeling/数据准备/\",\"tags\":\"\",\"targetDirUrl\":\"iMaster NAIE数据集公有云/主题数据集\"},{\"datasetName\":\"数据准备测试模型A\",\"desc\":\"\",\"sourceDirUrl\":\"DataModeling/数据准备/\",\"tags\":\"\",\"targetDirUrl\":\"iMaster NAIE数据集公有云/主题数据集\"}]\n2020-08-06 21:16:12.528 [main] INFO  - getDatasets datasetsInfo is [DatasetParam(datasetName=数据准备测试模型B, sourceDirUrl=DataModeling/数据准备/, desc=, tags=, targetDirUrl=iMaster NAIE数据集公有云/主题数据集, userId=null, userName=null, tenantName=null, tenantId=null, projectId=null, netInfo=), DatasetParam(datasetName=数据准备测试模型A, sourceDirUrl=DataModeling/数据准备/, desc=, tags=, targetDirUrl=iMaster NAIE数据集公有云/主题数据集, userId=null, userName=null, tenantName=null, tenantId=null, projectId=null, netInfo=)]\n2020-08-06 21:16:12.528 [main] INFO  - get instance scene is [Cloud]\n2020-08-06 21:16:13.547 [main] INFO  - POST url is https://100.95.145.153:9516/cloudcatalog/softcomai/datalake/v1.0/catalogs/autoMgr/create\n2020-08-06 21:16:13.547 [main] INFO  - the request body is {\"userId\": \"06179cf4c080d5bb1faac0035a6a3650\",\"userName\": \"fuqiang\",\"tenantName\": \"softcomai_z00284297_03\",\"tenantId\": \"051fb6cf4c00d33d0f85c003b99352a0\",\"projectId\": \"051fb6d19780d5312f41c003c7e7258d\",\"targetDir\": \"iMaster NAIE数据集公有云/主题数据集\"}\n2020-08-06 21:16:13.773 [main] INFO  - CreateDirRespHandler Response is {\"success\":false,\"errorMsg\":\"系统中已存在同名的目录\",\"errorCode\":\"23469349.30000.01077\",\"returnData\":\"iMaster NAIE数据集公有云/主题数据集\"}\n2020-08-06 21:16:14.778 [main] INFO  - POST url is https://100.95.145.153:9516/cloudcatalog/softcomai/datalake/v1.0/catalogs/autoMgr/create\n2020-08-06 21:16:14.779 [main] INFO  - the request body is {\"userId\": \"06179cf4c080d5bb1faac0035a6a3650\",\"userName\": \"fuqiang\",\"tenantName\": \"softcomai_z00284297_03\",\"tenantId\": \"051fb6cf4c00d33d0f85c003b99352a0\",\"projectId\": \"051fb6d19780d5312f41c003c7e7258d\",\"targetDir\": \"iMaster NAIE数据集公有云/主题数据集\"}\n2020-08-06 21:16:14.821 [main] INFO  - CreateDirRespHandler Response is {\"success\":false,\"errorMsg\":\"系统中已存在同名的目录\",\"errorCode\":\"23469349.30000.01077\",\"returnData\":\"iMaster NAIE数据集公有云/主题数据集\"}\n2020-08-06 21:16:14.835 [main] INFO  - the publish dataset body is [{\"datasetName\":\"数据准备测试模型B\",\"desc\":\"\",\"netInfo\":\"\",\"projectId\":\"051fb6d19780d5312f41c003c7e7258d\",\"sourceDirUrl\":\"DataModeling/数据准备/\",\"tags\":\"\",\"targetDirUrl\":\"iMaster NAIE数据集公有云/主题数据集\",\"tenantId\":\"051fb6cf4c00d33d0f85c003b99352a0\",\"tenantName\":\"softcomai_z00284297_03\",\"userId\":\"06179cf4c080d5bb1faac0035a6a3650\",\"userName\":\"fuqiang\"},{\"datasetName\":\"数据准备测试模型A\",\"desc\":\"\",\"netInfo\":\"\",\"projectId\":\"051fb6d19780d5312f41c003c7e7258d\",\"sourceDirUrl\":\"DataModeling/数据准备/\",\"tags\":\"\",\"targetDirUrl\":\"iMaster NAIE数据集公有云/主题数据集\",\"tenantId\":\"051fb6cf4c00d33d0f85c003b99352a0\",\"tenantName\":\"softcomai_z00284297_03\",\"userId\":\"06179cf4c080d5bb1faac0035a6a3650\",\"userName\":\"fuqiang\"}]\n2020-08-06 21:16:15.836 [main] INFO  - PUT url is https://100.95.145.153:9516/cloudcatalog/softcomai/datalake/v1.0/dataSet/autoMgr/publish\n2020-08-06 21:16:15.837 [main] INFO  - the request body is [{\"datasetName\":\"数据准备测试模型B\",\"desc\":\"\",\"netInfo\":\"\",\"projectId\":\"051fb6d19780d5312f41c003c7e7258d\",\"sourceDirUrl\":\"DataModeling/数据准备/\",\"tags\":\"\",\"targetDirUrl\":\"iMaster NAIE数据集公有云/主题数据集\",\"tenantId\":\"051fb6cf4c00d33d0f85c003b99352a0\",\"tenantName\":\"softcomai_z00284297_03\",\"userId\":\"06179cf4c080d5bb1faac0035a6a3650\",\"userName\":\"fuqiang\"},{\"datasetName\":\"数据准备测试模型A\",\"desc\":\"\",\"netInfo\":\"\",\"projectId\":\"051fb6d19780d5312f41c003c7e7258d\",\"sourceDirUrl\":\"DataModeling/数据准备/\",\"tags\":\"\",\"targetDirUrl\":\"iMaster NAIE数据集公有云/主题数据集\",\"tenantId\":\"051fb6cf4c00d33d0f85c003b99352a0\",\"tenantName\":\"softcomai_z00284297_03\",\"userId\":\"06179cf4c080d5bb1faac0035a6a3650\",\"userName\":\"fuqiang\"}]\n2020-08-06 21:16:16.533 [main] INFO  - CreatePublishTaskRespHandler Response is {\"success\":false,\"errorMsg\":\"待发布的数据集不存在,可能的原因是无此数据集,或者已被发布\",\"errorCode\":\"23469349.30000.01036\"}\n2020-08-06 21:16:16.534 [main] ERROR - Create publish task error.\n2020-08-06 21:16:16.535 [main] ERROR - do request error.\njava.lang.RuntimeException: Create publish task error.\n\tat com.huawei.softcomai.datalake.dataplan.response.CreatePublishTaskRespHandler.handle(CreatePublishTaskRespHandler.java:42)\n\tat com.huawei.softcomai.datalake.dataplan.cloud.handle.RequestUtils.doRequest(RequestUtils.java:38)\n\tat com.huawei.softcomai.datalake.dataplan.cloud.handle.PublishHandler.publich(PublishHandler.java:65)\n\tat com.huawei.softcomai.datalake.dataplan.cloud.PipeLineEvent.getSectionList(PipeLineEvent.java:48)\n\tat com.huawei.softcomai.datalake.dataplan.pipeline.PipeLineEntry.start(PipeLineEntry.java:109)\n\tat com.huawei.softcomai.datalake.dataplan.MainEntry.main(MainEntry.java:42)\nTAG_STATUS={\"status\":\"failed\"}\nException in thread \"main\" java.lang.RuntimeException: Create publish task error.\n\tat com.huawei.softcomai.datalake.dataplan.cloud.handle.RequestUtils.doRequest(RequestUtils.java:44)\n\tat com.huawei.softcomai.datalake.dataplan.cloud.handle.PublishHandler.publich(PublishHandler.java:65)\n\tat com.huawei.softcomai.datalake.dataplan.cloud.PipeLineEvent.getSectionList(PipeLineEvent.java:48)\n\tat com.huawei.softcomai.datalake.dataplan.pipeline.PipeLineEntry.start(PipeLineEntry.java:109)\n\tat com.huawei.softcomai.datalake.dataplan.MainEntry.main(MainEntry.java:42)\n",
                "tenantId": "051fb6cf4c00d33d0f85c003b99352a0",
                "status": "failed",
                "beginTime": "2020-08-06 21:16:12",
                "endTime": "2020-08-06 21:16:16",
                "costTime": "4",
                "orderId": "3"
            }
        ]
    }
  • 要素说明

    参数名

    参数类型

    备注

    success

    String

    请求是否成功,取值包括true和false。

    returnData

    JSON LIST

    返回值。

    batchNo

    String

    批次号。

    progressId

    String

    项目ID。

    taskId

    String

    任务ID。

    taskName

    String

    任务名称。

    taskLog

    String

    任务日志。

    tenantId

    String

    租户ID。

    beginTime

    String

    开始时间。

    endTime

    String

    结束时间。

    costTime

    String

    花费时间。

    orderId

    String

    执行顺序。

状态码

具体请参考状态码

分享:

    相关文档

    相关产品

close