Setting the Aura Job Priority
In production environments, the urgency and importance of jobs vary. Key business jobs must be prioritized for compute resources to ensure uninterrupted execution. AI DataLake provides Aura job priority scheduling, allowing you to specify a job priority when submitting a job.
The method for setting job priorities varies by endpoint type. Table 1 describes how to set the job priority.
| Endpoint Type | Setting Method | Reference |
|---|---|---|
| AuraJobV2 | Currently, job priorities can be set only using APIs. The console does not support this feature. You can specify the job priority using the priority parameter when calling the session creation API. | |
| AuraJob | When using DataArts Studio to develop AuraJob jobs, you can set the job priority when creating or editing a job to control its scheduling priority in AI DataLake. |
Notes
- The Aura job priority is an optional parameter. Valid values are described as follows.
Table 2 Job priorities Job Type
Value Range
Highest Priority
Lowest Priority
Default Value
AuraJobV2
An integer ranging from 1 to 9
9
1
5
AuraJob
An integer ranging from 0 to 9
9
0
0
- The job priority is an optional parameter and needs to be set only when you want to adjust the priority level. If this parameter is left unconfigured, jobs are submitted using the default priority without affecting existing jobs.
- When resources are insufficient, jobs enter a queue. Once sufficient resources become available, the system schedules jobs in descending order of priority. Jobs with the same priority level are scheduled based on their submission time.
Setting the Job Priority for AuraJobV2
When creating a session using the API, specify the priority parameter to set the job priority. For details, see Creating a Session.
An example API request is shown below:
POST /v2/workspaces/{workspace_id}/aura-sessions
{
"endpoint_name" : "aura-job-zgg",
"priority" : "9",
"wait_timeout" : "86400",
"max_retry_times" : "5",
"lake_formation_config" : {
"catalog" : "catalogName"
}
} Table 3 describes the parameters.
| Parameter | Description | Example Value |
|---|---|---|
| endpoint_name | The name of the AuraJobV2 endpoint. | aura-job-zgg |
| priority | The job priority. The value is an integer ranging from 1 to 9. The value 9 indicates the highest priority, and 1 indicates the lowest priority. The default value is 5. | 9 |
| wait_timeout | Session creation wait time, in seconds. Allowed values range from 300 to 86,400. | 86400 |
| max_retry_times | The maximum number of session creation retries. If the system cannot create a session after reaching this retry limit, session creation fails. | 5 |
| catalog | The name of the LakeFormation catalog. | catalogName |
Setting the Job Priority for AuraJob
When using DataArts Studio to develop AuraJob jobs, you can set the job priority when creating or editing a job to control its scheduling priority in AI DataLake. For details about developing an AuraJob and configuring its parameters, see Multimodal Data Processing Using User-Defined Images.
Viewing the Job Priority
After submitting a job, you can view its priority on the AI DataLake console.
- Log in to the AI DataLake console.
- In the left navigation pane, click Job Run History.
- In the job list, click the target job name to open the Job Run Details page.
- View the job priority on the Job Run Details page.
Related Operations
- Use the API to execute SQL statements in a specified session. For details, see Executing SQL Statements Under a Specified Session – ExecuteAuraV2SqlStatement.
- Use the API to view session details. For details, see Viewing Details of a Session – ShowAuraV2SqlSession.
- When a session is no longer needed, close it promptly to release system resources. For details, see Closing a Session – CloseAuraV2SqlSession.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot