获取任务执行的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterId |
string |
是 |
集群 ID |
xxljob-b6ec1xxxx |
| AppName |
string |
是 |
应用名称 |
test-app |
| JobExecutionId |
string |
是 |
任务执行 ID |
1310630367761285120 |
| MseSessionId |
string |
否 |
MSE 会话 ID。 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
39938688-0BAB-5AD8-BF02-F4910FAC7589 |
| Code |
integer |
响应码 |
200 |
| Message |
string |
错误信息 |
Parameter error: content is null. |
| Success |
boolean |
是否调用成功。
|
true |
| Data |
object |
任务执行的详细信息。 |
|
| JobExecutionId |
string |
任务执行 ID |
1310630367761285120 |
| JobId |
integer |
任务 id |
74 |
| JobName |
string |
任务名称 |
天猫-自动审单 |
| JobType |
string |
任务类型。 |
xxljob |
| Parameters |
string |
任务参数。 |
/home/avatar/system/services/biz/payment/crontab/monitorpayment.php |
| ScheduleTime |
string |
任务调度时间,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss。 |
2025-03-11 00:06:10 |
| DataTime |
string |
任务数据时间,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss。 |
2025-03-11 00:06:10 |
| StartTime |
string |
部署任务执行开始时间(秒,时间戳格式)。 |
2025-03-11 00:06:10 |
| EndTime |
string |
过期时间,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss,格式为 YYYY-MM-DD HH:mm:ss。 |
2024-10-29 15:56:36 |
| Duration |
integer |
运行总时长。 |
1 |
| Executor |
string |
执行者 ID。 |
{'Status': 'NORMAL', 'ActiveCount': 4, 'UnavailableCount': 0, 'ExpectedCount': 4, 'RiskCount': 0} |
| Result |
string |
返回结果。 |
[] |
| Status |
integer |
任务执行状态。具体说明如下:
|
4 |
| TimeType |
integer |
时间类型:
|
1 |
| Attempt |
integer |
失败尝试次数。 |
1 |
| AppName |
string |
应用名称。 |
test-app |
| RouteStrategy |
integer |
路由策略。具体取值如下:
|
1 |
| ServerIp |
string |
调度节点。 |
172.3.27.76 |
| TriggerType |
integer |
任务触发类型。具体说明如下:
|
timer_schedule |
示例
正常返回示例
JSON格式
{
"RequestId": "39938688-0BAB-5AD8-BF02-F4910FAC7589",
"Code": 200,
"Message": "Parameter error: content is null.\n",
"Success": true,
"Data": {
"JobExecutionId": "1310630367761285120",
"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 |
| 500 | InternalError | InternalError: %s. | 系统内部错误:%s |
| 403 | NoPermission | No permission to perform this operation: %s. | 没有权限去执行该操作:%s |
| 404 | NotFound | Not found: %s. | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。