文档
测试

作业状态查询

GET
http://192.168.101.52:5050/api/job/status

请求参数

参数名
类型
描述
必填
job_id
Int
作业id
必填
component_id
int
组件id
可选
type
string
作业类型 run正式作业,test 调试作业, 默认run
可选

响应参数

参数名
类型
描述
必填
code
int
示例:成功200; 前端错误4xx, 参数错误400 ; 数据状态错误405;任务不存在406; 服务器错误500
必填
msg
string
示例:sucess
必填
time
string
接口返回时间
必填
data
object
数据字典
必填
status
string
任务状态 1:'排队中',2:'运行中',3:'运行完成',4:'运行失败',5:'任务被取消'
可选
job_id
Int
作业id
可选
describ
string
描述 ,status为4时,任务运行失败会返回失败log
可选
cnt_fail
int
运行完成任务 失败的数据
可选
cnt_success
int
运行完成任务 成功的数据
可选
cost_time
int
处理时长毫秒
可选
run_ratio
int
处理效率 条数/秒
可选
error_field
list
参数错误列表
可选
field
string
错误参数字段名
可选
value
string
错误信息
可选
fail_detail
list
失败组件列表
可选
component_id
int
失败组件id
可选
component_name
string
失败组件名称
可选