Updated on 2026-11-06 GMT+08:00

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:

Viewing or Closing a SQL Session

You can view session information and close sessions as needed.

  1. Log in to the AI DataLake console.
  2. In the upper left corner of the page, select the target workspace.
  3. 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.
  4. 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.
    Table 1 Parameter description

    Parameter

    Description

    Status

    • Creating: The session is being created.
    • Waiting: The session is waiting.
    • Running: The session is running.
    • Closed: The session has been closed.
    • Failed: The session failed to run.

  5. (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.

  1. Log in to the AI DataLake console.
  2. In the upper left corner of the page, select the target workspace.
  3. 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.
  4. Click the SQL Session tab and then click SQL Execution Status in the Operation column of the target session.
  5. 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.

  6. (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.