GetSemanticJobDetail
Queries the executor status and runtime configuration by using the ExecutorJobId returned by RunSemanticJob or ListSemanticJobRuns.
Operation description
Scenarios
Queries the detailed status and runtime information of a specific semantic job run on the executor side to poll the execution progress or troubleshoot run failures.
Call procedure
Call
RunSemanticJoborListSemanticJobRunsto obtain theExecutorJobId.Use the
ProjectIdreturned by the job definition as theProjectIdfor this operation.Determine the current status based on the executor details in
Data. If the job is still running, you can continue to poll this operation.
Related operations
Call GetSemanticJobLog to retrieve logs. Call KillSemanticJob to stop the run.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetSemanticJobDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ExecutorJobId |
string |
Yes |
The executor job ID. Use the Data.ExecutorJobId from the RunSemanticJob response or the ExecutorJobId from the ListSemanticJobRuns records. |
exec-job-demo |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace to which the job belongs. Use the ProjectId from the CreateSemanticJob response or the ListSemanticJobs list items. |
100 |
Construct the call parameters based on the description of each request field.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The standard response for querying executor run details. Data contains the executor details currently returned for the specified ExecutorJobId. |
||
| 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 is successful. |
|
| Data |
object |
The job details returned by the executor. You can use these details to determine the run status and view the effective runtime configuration. |
|
| ExecutorJobId |
string |
The executor job ID. |
exec-job-demo |
| FileType |
integer |
The code of the executor node type. Semantic jobs use the Shell node code 6. |
6 |
| ProjectId |
integer |
The ID of the DataWorks workspace associated with the executor job. |
100 |
| Datasource |
string |
The identifier of the data source used by the executor job. |
maxcompute |
| CodeParameters |
string |
The code parameter information returned by the executor. You can use this information to troubleshoot the runtime configuration of the current run. |
--limit 100 |
| Env |
string |
The runtime environment identifier returned by the executor. |
PROD |
| CustomerName |
string |
The customer identifier of the executor job. |
meta_semantic |
| CurrentSqlIndex |
integer |
The index of the SQL snippet currently processed by the executor. |
0 |
| ExecTypes |
array |
The list of execution type codes returned by the executor. |
|
|
integer |
The list of execution type codes returned by the executor. |
6 |
|
| Statuses |
array |
The list of status codes returned by the executor. You can use this list to determine the current or final status of the job. |
|
|
integer |
The list of job status codes returned by the executor. A successful status includes 3. |
3 |
|
| AdvanceSettings |
object |
The advanced runtime settings returned by the executor. |
{} |
| ResourceUrls |
array<object> |
The list of resource URLs associated with the executor job. |
|
|
object |
The list of resource URLs returned by the executor. |
{ "fileName": "resource.jar", "fileUrl": "https://example.com/resources/resource.jar" } |
|
| ResourceGroupId |
string |
The identifier of the resource group that actually executes the job. |
rg-demo |
Refer to the description of each field for the meaning of response fields and subsequent call relationships.
Examples
Success response
JSON format
{
"RequestId": "676271D6-53B4-57BE-89FA-72F7AE1418DF",
"Success": false,
"Data": {
"ExecutorJobId": "exec-job-demo",
"FileType": 6,
"ProjectId": 100,
"Datasource": "maxcompute",
"CodeParameters": "--limit 100",
"Env": "PROD",
"CustomerName": "meta_semantic",
"CurrentSqlIndex": 0,
"ExecTypes": [
6
],
"Statuses": [
3
],
"AdvanceSettings": {},
"ResourceUrls": [
{
"fileName": "resource.jar",
"fileUrl": "https://example.com/resources/resource.jar"
}
],
"ResourceGroupId": "rg-demo"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.