# 批量查询任务状态

用于对工作流任务状态进行批量查询

# 请求

基本
HTTP URL https://hi-qa.weizhipin.com/open-apis/workflow/v1/task/batch_query
HTTP Method POST
支持的应用类型 自建应用
权限要求开启任一权限即可 [工作流]-[创建/编辑/查询任务]

# 请求头

名称 类型 必填 描述
Authorization string tenant_access_token
值格式:"Bearer access_token"
示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"
Content-Type string 固定值:"application/json; charset=utf-8"

# 请求体

名称 类型 必填 描述
task_ids array 任务id集合 数组,批量传入任务id,至多100个

# 响应

# 响应体

{
  "code": "0",
  "traceId": "",
  "data": [
    {
      "task_id": "qwerasdfzxcv", //示例值
      "task_status": 1, //示例值
      "finish_time": 1686732874000 //示例值
    }
  ],
  "msg": "操作成功"
}
1
2
3
4
5
6
7
8
9
10
11
12

data数组内对象结构

名称 类型 描述
task_id string 任务id
task_status int 任务状态 1待认领,2进行中,3已完成
finish_time long 任务完成时间 只有task_status=3时有值

如果响应非成功状态,请对照 错误码文档

最后更新于 : 8/21/2023, 4:57:10 PM