Queries runtime data of all jobs that are still in the Running state within a specified time range.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetRunningJobs |
list |
*All resources
|
None | None |
Request syntax
GET /api/v1/jobs/runningJobs HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| from |
integer |
Yes |
The start of the query time range. This time refers to the job submission time.
|
1683785928 |
| to |
integer |
Yes |
The end of the query time range. This time refers to the job submission time.
|
1683612946 |
| jobOwnerList |
array |
No |
The list of job executors. |
|
|
string |
No |
The list of job executors. |
ALIYUN$xxx@test.aliyunid.com |
|
| quotaNicknameList |
array |
No |
The list of quota nicknames used by jobs. |
|
|
string |
No |
The list of quota nicknames used by jobs. |
my_quota |
|
| pageNumber |
integer |
No |
The page number. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 20. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0bc3b4ab16684833172127321e2c25 |
| httpCode |
integer |
The HTTP status code. A non-empty value other than 200 indicates a business processing failure. |
200 |
| errorCode |
string |
The error code, or an empty value.
|
success |
| errorMsg |
string |
The error message. |
0A3B1FD2006A24C8D8BE65CDAC028298 |
| data |
object |
The returned data. |
|
| runningJobInfoList |
array<object> |
The list of running jobs. |
|
|
object |
The running job details. |
||
| instanceId |
string |
The instance ID. |
2023050206371544gomgtp3ljcr4 |
| jobOwner |
string |
The account that submitted the job. |
ALIYUN$xxx@test.aliyunid.com |
| project |
string |
The MaxCompute project name. |
project_20221021123044_981b |
| quotaNickname |
string |
The quota nickname used by the job. |
my_quota |
| cuSnapshot |
number |
The CU snapshot ratio of the job. |
0.45 |
| memorySnapshot |
number |
The memory snapshot ratio of the job. |
0.45 |
| submittedAtTime |
integer |
The submission time of the job. |
1689746864 |
| runningAtTime |
integer |
The time when the job started running. |
1689746864 |
| progress |
number |
The job progress. |
0 |
| totalCount |
integer |
The total number of results. |
64 |
| pageNumber |
integer |
The current page number. |
2 |
| pageSize |
integer |
The number of entries per page. |
10 |
Examples
Success response
JSON format
{
"requestId": "0bc3b4ab16684833172127321e2c25",
"httpCode": 200,
"errorCode": "success",
"errorMsg": "0A3B1FD2006A24C8D8BE65CDAC028298",
"data": {
"runningJobInfoList": [
{
"instanceId": "2023050206371544gomgtp3ljcr4",
"jobOwner": "ALIYUN$xxx@test.aliyunid.com",
"project": "project_20221021123044_981b",
"quotaNickname": "my_quota",
"cuSnapshot": 0.45,
"memorySnapshot": 0.45,
"submittedAtTime": 1689746864,
"runningAtTime": 1689746864,
"progress": 0
}
],
"totalCount": 64,
"pageNumber": 2,
"pageSize": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.