获取任务执行的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClusterId | string | 是 | 集群 ID | xxljob-b6ec1xxxx |
AppName | string | 是 | 应用名称 | test-app |
JobExecutionId | string | 是 | 任务执行 ID | 1310630367761285120 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "39938688-0BAB-5AD8-BF02-F4910FAC7589",
"Code": 200,
"Message": "Parameter error: content is null.\n",
"Success": true,
"Data": {
"JobExecutionId": 1310630367761285000,
"JobId": 74,
"JobName": "天猫-自动审单",
"JobType": "xxljob",
"Parameters": "/home/avatar/system/services/biz/payment/crontab/monitorpayment.php",
"ScheduleTime": "2025-03-11 00:06:10",
"DataTime": "2025-03-11 00:06:10",
"StartTime": "2025-03-11 00:06:10",
"EndTime": "2024-10-29 15:56:36",
"Duration": 1,
"Executor": "{'Status': 'NORMAL', 'ActiveCount': 4, 'UnavailableCount': 0, 'ExpectedCount': 4, 'RiskCount': 0}",
"Result": [],
"Status": 4,
"TimeType": 1,
"Attempt": 1,
"AppName": "test-app",
"RouteStrategy": 1,
"ServerIp": "172.3.27.76",
"TriggerType": 0
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidParameter | Parameter error: %s. | 参数错误: %s |
401 | IllegalRequest | IllegalRequest: %s. | 非法请求:%s |
403 | NoPermission | No permission to perform this operation: %s. | 没有权限去执行该操作:%s |
404 | NotFound | Not found: %s. | 资源不存在:%s |
500 | InternalError | InternalError: %s. | 系统内部错误:%s |
访问错误中心查看更多错误码。