Managing Sessions
A session is a persistent connection channel established between a client and an AuraJobV2 endpoint. During the lifetime of a session, you can submit jobs within it. After creating a session, you can view the SQL session details and execution status for an AuraJobV2 endpoint. If a session is no longer needed, close it promptly to release system resources.
Notes and Constraints
This function is supported only by AuraJobV2.
Creating a Session
You can create a session for an AuraJobV2 endpoint in any of the following ways:
- Create a session using an API. For details, see Step 1: Create a Session.
- Run the magic command %aura_frame in a DataArts Studio notebook to create a session. For details, see Step 1: Connect to the AuraJobV2 Endpoint.
- Create a session using ai_lake.connect() in the Python DataFrame SDK. For details, see Establishing a Connection to an AuraJobV2 Endpoint.
Viewing or Closing a SQL Session
You can view session information and close sessions as needed.
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Aura. In the endpoint list, click the name of the endpoint where the job is running to go to the Overview page.
- Click the SQL Session tab to view basic session information, including the session ID, status, and creation time. Table 1 describes the key parameters. You can filter sessions by last day, last 3 days, or a custom time range on the console.
- (Optional) Click Close in the Operation column of the target session. In the dialog box that is displayed, click OK.
Viewing or Canceling SQL Execution
You can view the SQL execution information in the target session and cancel the running SQL statements as required.
- Log in to the AI DataLake console.
- In the upper left corner of the page, select the target workspace.
- In the left navigation pane, choose Engine Endpoints > Aura. In the endpoint list, click the name of the endpoint where the job is running to go to the Overview page.
- Click the SQL Session tab and then click SQL Execution Status in the Operation column of the target session.
- In the SQL Execution Status panel that appears, view the basic information about SQL execution, including the statement ID, query statement, status, submission time, and submitter. For details about SQL execution statuses, see Table 2.
Table 2 SQL execution statuses Status
Description
Submitted
The SQL statement has been submitted.
Running
The SQL statement is executing.
Successful
The SQL statement has been executed successfully.
Canceled
The SQL statement has been canceled.
Failed
The SQL statement fails to execute.
Abnormal
An error occurred while the system executed the SQL statement.
Waiting
The SQL statement is waiting to be executed.
- (Optional) To cancel a running SQL statement, click Cancel Execution in the Operation column for that statement. In the displayed dialog box, enter YES and click OK.
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