ListSemanticJobRuns
Queries the run records of a created node by Name with paging. The JobRunId in each record is active for retrieving the results of a specific run, and the ExecutorJobId is active for querying details, retrieving logs, or stopping the run.
Operation description
Scenarios
View the historical run records of a semantic job with pagination to obtain the run ID, executor job ID, status, and time information for each submission.
Procedure
Use the job name from
CreateSemanticJob.Data.NameorListSemanticJobsas theJobName.Use
PageNumberandPageSizeto read records page by page.Use the
JobRunIdfrom a record to callDownloadSemanticResults, and use theExecutorJobIdto call the detail, log, or stop operations.
Before you begin
Pagination starts from page 1 by default. Each page contains a maximum of 200 records.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListSemanticJobRuns |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobName |
string |
Yes |
The job name. Use the Data.Name value from the CreateSemanticJob response or the Name value from a ListSemanticJobs list item. |
semantic-job-demo |
| PageNumber |
integer |
No |
The page number, starting from 1. If this parameter is not specified or set to a value less than or equal to 0, page 1 is returned. |
1 |
| PageSize |
integer |
No |
The number of run records to return per page. If this parameter is not specified or set to a value less than or equal to 0, the default value 50 is used. Maximum value: 200. |
50 |
Construct the request parameters based on the description of each request field.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The standard response for paging query of run records. Each item in Data.JobRuns corresponds to a committed run. |
||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
676271D6-53B4-57BE-89FA-72F7AE1418DF |
| Success |
boolean |
Indicates whether the request was successful. |
|
| Data |
object |
The paginated run record results. Use the JobRunId to download the results of a specific run, and use the ExecutorJobId to query details, retrieve logs, or stop a run. |
|
| TotalCount |
integer |
The total number of run records that match the current job criteria. |
1 |
| PageNumber |
integer |
The page number of the returned page, starting from 1. |
1 |
| PageSize |
integer |
The number of records per page in the current response. |
50 |
| JobRuns |
array<object> |
The list of run records. |
|
|
object |
The record of a single semantic job run. |
||
| JobRunId |
string |
The semantic job run ID. Pass this value as the JobRunId parameter to DownloadSemanticResults to download the results of this run. |
01H00000000000000000000000 |
| ExecutorJobId |
string |
The executor job ID. Pass this value as the ExecutorJobId parameter to GetSemanticJobDetail, GetSemanticJobLog, or KillSemanticJob. |
exec-job-demo |
| JobName |
string |
The name of the job to which this run belongs. You can use this value to rerun the job, query run records, or download results. |
semantic-job-demo |
| UserId |
string |
The ID of the user who submitted this run. |
user-demo |
| GmtCreate |
integer |
The time when the run record was created. The value is a UNIX timestamp in milliseconds. |
1700000000000 |
For the meaning of each response field and the relationships between subsequent calls, refer to the individual field descriptions.
Examples
Success response
JSON format
{
"RequestId": "676271D6-53B4-57BE-89FA-72F7AE1418DF",
"Success": false,
"Data": {
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 50,
"JobRuns": [
{
"JobRunId": "01H00000000000000000000000",
"ExecutorJobId": "exec-job-demo",
"JobName": "semantic-job-demo",
"UserId": "user-demo",
"GmtCreate": 1700000000000
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.