tencent cloud

APIs

GetWorkflowTaskRun

下载
聚焦模式
字号
最后更新时间: 2026-10-11 15:48:11

1. API Description

Domain name for API request: databuddy.intl.tencentcloudapi.com.

Query task execution details

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: GetWorkflowTaskRun.
Version Yes String Common Params. The value used for this API: 2026-07-15.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
WorkspaceId Yes String

Workspace ID, which can be obtained through ListWorkspaces. Required

WorkflowTaskRunId Yes String

Task running ID, which can be obtained through ListWorkflowTaskRuns. Required

InnerWorkflowTaskRunListOption No InnerWorkflowTaskRunListOption

Built-in workflow task run list options (for FOR_EACH task use only). Optional

3. Output Parameters

Parameter Name Type Description
Data GetWorkflowTaskRunRsp

Response content of querying task execution details

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Query task execution details

Input Example

POST / HTTP/1.1
Host: databuddy.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetWorkflowTaskRun
<Common request parameters>

{
    "WorkspaceId": "17697410068842890",
    "WorkflowTaskRunId": "f2d5ffc0-af32-4584-a315-b106637f1bfe_1786115878097_1"
}

Output Example

{
    "Response": {
        "Data": {
            "CreateTime": "1786115878247",
            "CreateUserUin": "700002164618",
            "DependOnList": [],
            "DependenceFinishedTime": "0",
            "ErrorCodeString": "",
            "IsLatestRun": true,
            "JobId": "",
            "LeftCoordinate": 0,
            "RerunTimes": 0,
            "ResourceGroupId": "",
            "ResourceGroupInfoList": [],
            "RetryTimes": 0,
            "RunCostTime": "0",
            "RunParams": "",
            "RunResult": "",
            "RunState": "CREATE",
            "RunUserName": "weda***0*d*v*********c**",
            "RunUserUin": "700002164618",
            "TaskId": "f2d5ffc0-af32-4584-a315-b106637f1bfe",
            "TaskName": "py_0807",
            "TaskTypeExtensions": "{\"TaskTypeName\":\"PYTHON\",\"Notebook\":null,\"TaskTypePropertyList\":[{\"PropertyKey\":\"Source\",\"PropertyValue\":\"5\"},{\"PropertyKey\":\"SourcePath\",\"PropertyValue\":\"/Workspace/test.py\"}],\"RuntimePropertyList\":[{\"PropertyKey\":\"ConfigType\",\"PropertyValue\":\"DEFAULT\"},{\"PropertyKey\":\"DriverCU\",\"PropertyValue\":\"large\"},{\"PropertyKey\":\"DriverGPU\",\"PropertyValue\":\"\"},{\"PropertyKey\":\"ExecutorAllocation\",\"PropertyValue\":\"DYNAMIC\"},{\"PropertyKey\":\"ExecutorCU\",\"PropertyValue\":\"large\"},{\"PropertyKey\":\"ExecutorFixedNum\",\"PropertyValue\":\"1\"},{\"PropertyKey\":\"ExecutorGPU\",\"PropertyValue\":\"\"},{\"PropertyKey\":\"ExecutorMaxNum\",\"PropertyValue\":\"15\"},{\"PropertyKey\":\"ExecutorMinNum\",\"PropertyValue\":\"1\"},{\"PropertyKey\":\"ResourceMode\",\"PropertyValue\":\"1\"},{\"PropertyKey\":\"Style\",\"PropertyValue\":\"UI\"}]}",
            "TaskTypeName": "PYTHON",
            "TaskVersionId": "2cf47642-f9b8-4b93-a6fa-31a03810c423",
            "TimeZone": "",
            "TopCoordinate": 0,
            "TriggerType": "",
            "UpdateTime": "1786115878236",
            "WaitTime": "1645528",
            "WorkflowId": "8e0e3485-2736-4530-92ed-932e019898f1",
            "WorkflowName": "new_workflow_20260807_190451",
            "WorkflowRunId": "8e0e3485-2736-4530-92ed-932e019898f1_1786115878097",
            "WorkflowTaskRunId": "f2d5ffc0-af32-4584-a315-b106637f1bfe_1786115878097_1",
            "WorkspaceId": "17697410068842890"
        },
        "RequestId": "f3a6c04b-fe86-48b3-bdb5-8bd4523a7698"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
FailedOperation.WorkflowNoPermission No operation permissions.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
InvalidParameterValue.ParamBlankError Parameter <parameter> cannot be empty.
MissingParameter Parameters are missing.
ResourceNotFound.TaskExecutionNotExist The run does not exist.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈