查询工作流运行详情

最近更新时间:2026-01-06 02:55:01

我的收藏

1. 接口描述

接口请求域名: wedata.tencentcloudapi.com 。

查询工作流任务详情

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:GetTriggerWorkflowRun。
Version String 公共参数,本接口取值:2025-08-06。
Region String 公共参数,详见产品支持的 地域列表
ProjectId String 项目ID
示例值:10293145472
WorkflowExecutionId String 工作流执行ID
示例值:2343287832
Filters.N Array of Filter 过滤条件
OrderFields.N Array of OrderField 排序条件

3. 输出参数

参数名称 类型 描述
Data TriggerWorkflowTaskRunDetailBrief 工作流任务信息
RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询工作流运行详情示例

输入示例

POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetTriggerWorkflowRun
<公共请求参数>

{
    "ProjectId": "1460947878944567296",
    "WorkflowExecutionId": "d0bf2249-3eb2-4ccf-9646-5de0a4b8cf54"
}

输出示例

{
    "Response": {
        "Data": {
            "BizStateEnumInfos": [
                {
                    "Count": 4,
                    "LabelKey": "PENDING",
                    "LabelValue": "等待资源"
                }
            ],
            "TriggerTaskRuns": [
                {
                    "CreateTime": "1764819600341",
                    "CreateUin": null,
                    "CycleType": null,
                    "DependOnList": null,
                    "DependenceFinishedTime": "1764819601306",
                    "ErrorCodeStr": null,
                    "ExecuteUserName": "ivesjcjiang",
                    "ExecuteUserUin": "100028578781",
                    "ExecutionEndTime": null,
                    "ExecutionId": "a80dc45b-b2e8-4a8f-b54a-6d8e4599f0f0",
                    "ExecutionResult": null,
                    "ExecutionStartTime": null,
                    "ExecutionState": "PENDING",
                    "ExecutionTime": null,
                    "FolderId": "f4afe0e4-4b5a-11f0-8ec8-b8599f277de5",
                    "FolderName": "0001",
                    "IsLatestExecution": true,
                    "IssueTime": "1764821224966",
                    "JobId": "6820251204120322084",
                    "LeftCoordinate": null,
                    "ProjectId": "1460947878944567296",
                    "RerunTimes": 0,
                    "ResourceGroupId": "20240222212719833743",
                    "ResourceGroupName": null,
                    "RetryTimes": 0,
                    "RunParams": "{\"project112\":\"12\"}",
                    "SupportRerun": null,
                    "TaskId": "20251124153853796",
                    "TaskName": "s1",
                    "TaskType": "SHELL",
                    "TaskTypeExtensions": "{\"calendar_id\":\"\",\"python_type\":\"python3\",\"data_cluster\":\"\",\"startupTime\":\"0\",\"calendar_open\":\"\",\"waitExecutionTotalTTL\":\"-1\",\"calendar_name\":\"\",\"executionTTLStrategy\":\"fail\",\"bucket\":\"wedata-fusion-dev-1257305158\",\"specLabelConfItems\":\"eyJzcGVjTGFiZWxDb25mSXRlbXMiOltdfQ==\",\"waitExecutionTotalTTLStrategy\":\"fail\",\"python_sub_version\":\"python3.11\",\"brokerIp\":\"any\",\"tenantId\":\"1257305158\",\"pre_dependence_config\":\"{}\",\"ftp.file.name\":\"https://wedata-fusion-dev-1257305158.cos.ap-nanjing.myqcloud.com//datastudio/project/1460947878944567296/0001/ives_test1/s1_20251124154026958.sh\",\"region\":\"ap-nanjing\",\"runPriority\":\"6\",\"extraInfo\":\"{\\\"fromMapping\\\":false}\",\"enableKerberosLogin\":\"false\"}",
                    "TaskTypeId": 35,
                    "TaskVersionId": "d954a722-08a5-4c10-b6c5-58547367d503",
                    "Timezone": "Asia/Shanghai",
                    "TopCoordinate": null,
                    "TriggerType": "Scheduler",
                    "UpdateTime": "1764821224966",
                    "UserNameInCharge": "ivesjcjiang",
                    "UserUinInCharge": "100028578781",
                    "WaitTime": null,
                    "WorkflowExecutionId": "d0bf2249-3eb2-4ccf-9646-5de0a4b8cf54",
                    "WorkflowExecutionState": null,
                    "WorkflowId": "36f56792-1b9f-4bae-aa20-c80359f69c9c",
                    "WorkflowParams": null
                },
                {
                    "CreateTime": "1764819600341",
                    "CreateUin": null,
                    "CycleType": null,
                    "DependOnList": null,
                    "DependenceFinishedTime": "1764819601382",
                    "ErrorCodeStr": null,
                    "ExecuteUserName": "ivesjcjiang",
                    "ExecuteUserUin": "100028578781",
                    "ExecutionEndTime": null,
                    "ExecutionId": "e67248f0-0a74-45ec-90a7-f4295d5d0705",
                    "ExecutionResult": null,
                    "ExecutionStartTime": null,
                    "ExecutionState": "PENDING",
                    "ExecutionTime": null,
                    "FolderId": "f4afe0e4-4b5a-11f0-8ec8-b8599f277de5",
                    "FolderName": "0001",
                    "IsLatestExecution": true,
                    "IssueTime": "1764821225454",
                    "JobId": "6820251204120323053",
                    "LeftCoordinate": null,
                    "ProjectId": "1460947878944567296",
                    "RerunTimes": 0,
                    "ResourceGroupId": "20240222212719833743",
                    "ResourceGroupName": null,
                    "RetryTimes": 0,
                    "RunParams": "{\"project112\":\"12\"}",
                    "SupportRerun": null,
                    "TaskId": "20251124225418489",
                    "TaskName": "嵌套工作流",
                    "TaskType": "RunWorkflow",
                    "TaskTypeExtensions": "{\"workflowId\":\"0f525a14-549e-4fa0-8bdc-664d18e63958\"}",
                    "TaskTypeId": 0,
                    "TaskVersionId": "fc666457-1355-4393-9402-f2ca54501186",
                    "Timezone": "Asia/Shanghai",
                    "TopCoordinate": null,
                    "TriggerType": "Scheduler",
                    "UpdateTime": "1764821225454",
                    "UserNameInCharge": "ivesjcjiang",
                    "UserUinInCharge": "100028578781",
                    "WaitTime": null,
                    "WorkflowExecutionId": "d0bf2249-3eb2-4ccf-9646-5de0a4b8cf54",
                    "WorkflowExecutionState": null,
                    "WorkflowId": "36f56792-1b9f-4bae-aa20-c80359f69c9c",
                    "WorkflowParams": null
                },
                {
                    "CreateTime": "1764819600341",
                    "CreateUin": null,
                    "CycleType": null,
                    "DependOnList": null,
                    "DependenceFinishedTime": "1764819601230",
                    "ErrorCodeStr": null,
                    "ExecuteUserName": "ivesjcjiang",
                    "ExecuteUserUin": "100028578781",
                    "ExecutionEndTime": null,
                    "ExecutionId": "e0c9dcaa-6e20-4ba6-9d77-abeed9a5a092",
                    "ExecutionResult": null,
                    "ExecutionStartTime": null,
                    "ExecutionState": "PENDING",
                    "ExecutionTime": null,
                    "FolderId": "f4afe0e4-4b5a-11f0-8ec8-b8599f277de5",
                    "FolderName": "0001",
                    "IsLatestExecution": true,
                    "IssueTime": "1764821225342",
                    "JobId": "6820251204120322085",
                    "LeftCoordinate": null,
                    "ProjectId": "1460947878944567296",
                    "RerunTimes": 0,
                    "ResourceGroupId": "20240222212719833743",
                    "ResourceGroupName": null,
                    "RetryTimes": 0,
                    "RunParams": "{\"project112\":\"12\"}",
                    "SupportRerun": null,
                    "TaskId": "20251124153907522",
                    "TaskName": "s2",
                    "TaskType": "SHELL",
                    "TaskTypeExtensions": "{\"calendar_id\":\"\",\"python_type\":\"python3\",\"data_cluster\":\"\",\"startupTime\":\"0\",\"calendar_open\":\"\",\"waitExecutionTotalTTL\":\"-1\",\"calendar_name\":\"\",\"executionTTLStrategy\":\"fail\",\"bucket\":\"wedata-fusion-dev-1257305158\",\"specLabelConfItems\":\"eyJzcGVjTGFiZWxDb25mSXRlbXMiOltdfQ==\",\"waitExecutionTotalTTLStrategy\":\"fail\",\"python_sub_version\":\"python3.11\",\"brokerIp\":\"any\",\"tenantId\":\"1257305158\",\"pre_dependence_config\":\"{\\\"configList\\\":[{\\\"taskId\\\":\\\"20251124153853796\\\",\\\"value\\\":\\\"CT\\\",\\\"pollingNullStrategy\\\":\\\"WAITING\\\",\\\"mainCyclicConfig\\\":\\\"CRONTAB\\\"}]}\",\"ftp.file.name\":\"https://wedata-fusion-dev-1257305158.cos.ap-nanjing.myqcloud.com//datastudio/project/1460947878944567296/0001/ives_test1/s2_20251124154030664.sh\",\"region\":\"ap-nanjing\",\"runPriority\":\"6\",\"extraInfo\":\"{\\\"fromMapping\\\":false}\",\"enableKerberosLogin\":\"false\"}",
                    "TaskTypeId": 35,
                    "TaskVersionId": "2e0a93b5-a08e-4306-ace2-9ffdfd98e6a1",
                    "Timezone": "Asia/Shanghai",
                    "TopCoordinate": null,
                    "TriggerType": "Scheduler",
                    "UpdateTime": "1764821225342",
                    "UserNameInCharge": "ivesjcjiang",
                    "UserUinInCharge": "100028578781",
                    "WaitTime": null,
                    "WorkflowExecutionId": "d0bf2249-3eb2-4ccf-9646-5de0a4b8cf54",
                    "WorkflowExecutionState": null,
                    "WorkflowId": "36f56792-1b9f-4bae-aa20-c80359f69c9c",
                    "WorkflowParams": null
                },
                {
                    "CreateTime": "1764819600341",
                    "CreateUin": null,
                    "CycleType": null,
                    "DependOnList": [
                        "20251124153853796"
                    ],
                    "DependenceFinishedTime": "1764838165794",
                    "ErrorCodeStr": null,
                    "ExecuteUserName": "ivesjcjiang",
                    "ExecuteUserUin": "100028578781",
                    "ExecutionEndTime": null,
                    "ExecutionId": "03639d3b-f9d3-4794-be7f-77b17bdad8de",
                    "ExecutionResult": null,
                    "ExecutionStartTime": null,
                    "ExecutionState": "PENDING",
                    "ExecutionTime": null,
                    "FolderId": "f4afe0e4-4b5a-11f0-8ec8-b8599f277de5",
                    "FolderName": "0001",
                    "IsLatestExecution": true,
                    "IssueTime": "1764821225394",
                    "JobId": "6820251204120322086",
                    "LeftCoordinate": null,
                    "ProjectId": "1460947878944567296",
                    "RerunTimes": 0,
                    "ResourceGroupId": "20240222212719833743",
                    "ResourceGroupName": null,
                    "RetryTimes": 0,
                    "RunParams": "{\"project112\":\"12\"}",
                    "SupportRerun": null,
                    "TaskId": "20251124215540484",
                    "TaskName": "归并节点测试",
                    "TaskType": "Dependent",
                    "TaskTypeExtensions": "{\"calendar_id\":\"\",\"startupTime\":\"0\",\"calendar_open\":\"\",\"waitExecutionTotalTTL\":\"-1\",\"calendar_name\":\"\",\"executionTTLStrategy\":\"fail\",\"bucket\":\"\",\"dlcJobData\":\"\",\"waitExecutionTotalTTLStrategy\":\"fail\",\"mergeCondition\":\"[{\\\"conditionType\\\":\\\"singleCondition\\\",\\\"expectationState\\\":[2,21],\\\"orderNum\\\":0,\\\"upstreamTaskId\\\":\\\"20251124153853796\\\",\\\"upstreamTaskName\\\":\\\"s1\\\",\\\"upstreamWorkflowId\\\":\\\"36f56792-1b9f-4bae-aa20-c80359f69c9c\\\",\\\"upstreamProjectId\\\":\\\"1460947878944567296\\\",\\\"upstreamProjectName\\\":\\\"调度dev验证项目_new2\\\"}]\",\"brokerIp\":\"any\",\"pre_dependence_config\":\"{\\\"configList\\\":[{\\\"taskId\\\":\\\"20251124153853796\\\",\\\"value\\\":\\\"CT\\\",\\\"pollingNullStrategy\\\":\\\"WAITING\\\",\\\"mainCyclicConfig\\\":\\\"CRONTAB\\\"}]}\",\"region\":\"\",\"runPriority\":\"6\",\"extraInfo\":\"{\\\"fromMapping\\\":false}\"}",
                    "TaskTypeId": 0,
                    "TaskVersionId": "fc666457-1355-4393-9402-f2ca54501196",
                    "Timezone": "Asia/Shanghai",
                    "TopCoordinate": null,
                    "TriggerType": "Scheduler",
                    "UpdateTime": "1764821225394",
                    "UserNameInCharge": "ivesjcjiang",
                    "UserUinInCharge": "100028578781",
                    "WaitTime": null,
                    "WorkflowExecutionId": "d0bf2249-3eb2-4ccf-9646-5de0a4b8cf54",
                    "WorkflowExecutionState": null,
                    "WorkflowId": "36f56792-1b9f-4bae-aa20-c80359f69c9c",
                    "WorkflowParams": null
                }
            ],
            "TriggerWorkflowRun": {
                "AppId": "1315051789",
                "CreateTime": "1764819600029",
                "CycleType": "MINUTE_CYCLE",
                "EndTime": null,
                "ErrorCodeStr": "WaitingExecutionResource",
                "ExecuteUserName": null,
                "ExecuteUserUin": "100028578781",
                "ExecutionCostTime": null,
                "ExecutionEndTime": null,
                "ExecutionId": "d0bf2249-3eb2-4ccf-9646-5de0a4b8cf54",
                "ExecutionStartTime": null,
                "ExecutionState": "QUEUED",
                "FolderId": "f4afe0e4-4b5a-11f0-8ec8-b8599f277de5",
                "FolderName": "0001",
                "PendingCostTime": "18565",
                "PendingStartTime": "1764819601000",
                "PlannedSchedulingTime": null,
                "ProjectId": "1460947878944567296",
                "QueueCostTime": "0",
                "QueueStartTime": "1764819600511",
                "RerunTimes": 0,
                "SelectedTaskIds": [
                    "20251124153853796",
                    "20251124153907522",
                    "20251124215540484",
                    "20251124225418489"
                ],
                "SupportRerun": false,
                "TriggerId": "e25b02e3-1eb3-4ece-91bc-2bc1bc57321d",
                "TriggerType": "Scheduler",
                "UserNameInCharge": "ivesjcjiang",
                "UserUinInCharge": "100028578781",
                "WorkflowId": "36f56792-1b9f-4bae-aa20-c80359f69c9c",
                "WorkflowName": "ives_test1",
                "WorkflowParams": "{\"project112\":\"12\"}",
                "WorkflowVersionId": "7f2752c5-10c6-45dd-b865-61a5c2a543fe"
            }
        },
        "RequestId": "7ec7e0cc-4d81-43d4-b7bc-79e02264f077"
    }
}

5. 开发者资源

腾讯云 API 平台

腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

API Inspector

用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

错误码 描述
FailedOperation 操作失败。
InternalError 内部错误。
InvalidParameter 参数错误。
InvalidParameterValue 参数取值错误。
MissingParameter 缺少参数错误。
ResourceNotFound 资源不存在。
UnknownParameter 未知参数错误。