获取指定业务的任务队列(等待分配的任务)
方法
getTaskQueue(businessId) -> {Promise.<any>}
结果中的任务顺序即队列顺序
请求参数
名称 | 类型 | 说明 |
---|---|---|
businessId |
string | 业务标识 |
返回值 Promise.<any>
等待分配的任务数据列表
名称 | 类型 | 说明 |
---|---|---|
sn |
string | 任务记录标识 |
taskId |
string | 任务标识 |
businessId |
string | 任务所属业务标识 |
botSn |
string | 执行任务的机器人 SN |
content |
object | 任务内容 SN 具体内容业务定义 |
queueWeight |
string | 队列权重 数值越小越靠前 |
createTime |
integer | 任务创建时间 毫秒级 UTC 时间戳 |
issueTime |
integer | 任务下发时间 毫秒级 UTC 时间戳 |
startTime |
integer | 任务开始时间 毫秒级 UTC 时间戳 |
endTime |
integer | 任务结束时间 毫秒级 UTC 时间戳 |
endType |
string | 任务结束类型 具体内容业务定义 |