ListSemanticJobRuns

Updated at:

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

  1. Use the job name from CreateSemanticJob.Data.Name or ListSemanticJobs as the JobName.

  2. Use PageNumber and PageSize to read records page by page.

  3. Use the JobRunId from a record to call DownloadSemanticResults, and use the ExecutorJobId to 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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.