Lists Ray job information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:ListRayJob |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/workspaces/{workspaceId}/rayJob HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
No |
The workspace ID. |
w-d2d82aa09155 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| pageSize |
integer |
No |
The number of entries to return on each page. Default value: 20. |
20 |
| pageNum |
integer |
No |
The page number. Default value: 1. |
1 |
| submissionId |
string |
No |
The submission ID of the Ray job. |
rj-xxxxxxxxxxx |
| name |
string |
No |
The name of the Ray job. Exact match is supported. |
myrayjob |
| submitTime |
object |
No |
The submission time range. |
|
| startTime |
integer |
No |
The start time of the submission time range. The value is a UNIX timestamp in milliseconds. |
1780017822000 |
| endTime |
integer |
No |
The end time of the submission time range. The value is a UNIX timestamp in milliseconds. |
1780018822000 |
| taskBizId |
string |
No |
The ID of the data development node. |
TSK-db8b870d901e443ba0aebba40c923e02 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944 |
| totalCount |
integer |
The total number of entries. |
200 |
| rayJobs |
array<object> |
The list of Ray jobs. |
|
|
object |
The Ray job struct. |
||
| submissionId |
string |
The ID of the Ray job. |
rj-uiulpgow9xljimm1 |
| name |
string |
The name of the Ray job. |
testRayJob |
| status |
string |
The status of the job. Valid values:
Valid values:
|
Running |
| resourceQueue |
string |
The Ray engine version. |
err-1.2.0 (Ray 2.55.1, Python 3.12) |
| submitTime |
integer |
The time when the job was submitted. The value is a UNIX timestamp in milliseconds. |
1776945399000 |
| startTime |
integer |
The time when the job was started. The value is a UNIX timestamp in milliseconds. |
1776945499000 |
| endTime |
integer |
The time when the job ended. The value is a UNIX timestamp in milliseconds. |
1776945509000 |
| duration |
integer |
The execution duration of the job, in seconds. |
3564 |
| creatorName |
string |
The nickname of the creator. |
Alice |
| dashboardUrl |
string |
The URL of the Ray cluster dashboard. If the Ray cluster is in the Running state, the URL points to the Runtime UI. If the cluster is in the Deleted state, the URL points to the History UI. The History UI is supported only in err-1.2.0 and later. |
https://emr-ray-gateway.aliyuncs.com?token=xxxxxxxxx |
| cuHours |
number |
The number of compute units (CUs) consumed during the job runtime. This value is an estimate. The actual value is subject to the bill. |
120 |
| clusterState |
string |
The status of the corresponding Ray cluster. Valid values:
Valid values:
|
Running |
Examples
Success response
JSON format
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944",
"totalCount": 200,
"rayJobs": [
{
"submissionId": "rj-uiulpgow9xljimm1",
"name": "testRayJob",
"status": "Running",
"resourceQueue": "err-1.2.0 (Ray 2.55.1, Python 3.12)",
"submitTime": 1776945399000,
"startTime": 1776945499000,
"endTime": 1776945509000,
"duration": 3564,
"creatorName": "Alice",
"dashboardUrl": "https://emr-ray-gateway.aliyuncs.com?token=xxxxxxxxx",
"cuHours": 120,
"clusterState": "Running"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.