Returns the details of a Task Execution.
Try it now
Test
RAM authorization
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster. |
xxljob-b6ec1xxxx |
| AppName |
string |
Yes |
The name of the application. |
test-app |
| JobExecutionId |
string |
Yes |
The ID of the job execution. |
1310630367761285120 |
| MseSessionId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
39938688-0BAB-5AD8-BF02-F4910FAC7589 |
| Code |
integer |
The response code. |
200 |
| Message |
string |
The error message. |
Parameter error: content is null. |
| Success |
boolean |
Indicates whether the API call succeeded.
|
true |
| Data |
object |
|
|
| JobExecutionId |
string |
The ID of the job execution. |
1310630367761285120 |
| JobId |
integer |
The ID of the job. |
74 |
| JobName |
string |
The name of the job. |
天猫-自动审单 |
| JobType |
string |
The type of the job. |
xxljob |
| Parameters |
string |
The parameters of the job. |
/home/avatar/system/services/biz/payment/crontab/monitorpayment.php |
| ScheduleTime |
string |
The scheduled time for the job execution. |
2025-03-11 00:06:10 |
| DataTime |
string |
The data timestamp for the job instance. |
2025-03-11 00:06:10 |
| StartTime |
string |
The time when the job execution started. |
2025-03-11 00:06:10 |
| EndTime |
string |
The time when the job execution ended. |
2024-10-29 15:56:36 |
| Duration |
integer |
The duration of the job execution. |
1 |
| Executor |
string |
Details of the executor that ran the job. The value is a JSON string. |
{'Status': 'NORMAL', 'ActiveCount': 4, 'UnavailableCount': 0, 'ExpectedCount': 4, 'RiskCount': 0} |
| Result |
string |
The result of the job execution. The value is a JSON string. |
[] |
| Status |
integer |
The job execution status. Valid values:
|
4 |
| TimeType |
integer |
The scheduling type of the job. Valid values:
|
1 |
| Attempt |
integer |
The number of execution attempts. |
1 |
| AppName |
string |
The name of the application. |
test-app |
| RouteStrategy |
integer |
The routing strategy. Valid values:
|
1 |
| ServerIp |
string |
The IP address of the scheduling server. |
172.3.27.76 |
| TriggerType |
integer |
Indicates how the job was triggered. Valid values:
|
timer_schedule |
Examples
Success response
JSON format
{
"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
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error: %s. | Parameter error: %s |
| 401 | IllegalRequest | IllegalRequest: %s. | Illegal request:%s |
| 500 | InternalError | InternalError: %s. | System Internal Error: %s |
| 403 | NoPermission | No permission to perform this operation: %s. | No permission to perform this operation: %s |
| 404 | NotFound | Not found: %s. | The resource does not exist: %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.