# Task Queue

SQL Editor manages user requests to run queries through the Task Queue system. This allows the users to efficiently handle multiple execution requests.

## Execution process

SQL execution requests are processed in the following order.

1. When a user requests to run a query, it is converted into a Task and registered in the Queue.
2. The Task Queue manages tasks in a first-in, first-out (FIFO) fashion, with the first requested task being run sequentially.
3. When the currently running task is completed, the next task is automatically fetched from the queue and run.
4. The status of each task (Pending, Running, Completed, Error) is monitored in real-time on the Task List tab.

###

***

## Checking the execution status

The users can check the status of each Task on the Task List tab.

<figure><img src="/files/tMex4av1Xfz1TyK2JCEU" alt="" width="375"><figcaption><p>Task List</p></figcaption></figure>

The Task List tab area is created on the right side of the screen when The users select  <img src="/files/CxCmWljha1EmVsfN4l8C" alt="" data-size="line"> button] from the \[View] menu, click the button on the Loading tab, or click the Progress Bar at the bottom of the application.

In the Task List tab, the users can view the following contents related to the selected editor session.

* A list of running, pending, and completed tasks
* A list of SQL contained within the Task
* The type of Task
* The start time of the task

From the Task List tab, The users can perform the following actions

* Delete a task
* Move to the editor where the Task was conducted

###

***

## Benefits of the Task Queue method

* Efficiency of concurrent tasks
* Efficiency in monitoring the status of tasks
* Ensuring the order of execution

###

***

## Limitations

To ensure smooth system operation, the following restrictions apply when there are tasks running.

* The execution of add-ons that use editor sessions is restricted. \
  (Customize filter function, edit row function, etc. on Result Tab)
* Changes to the editor session are restricted.
* Change the status of Commit, Rollback, and Auto commit are restricted.

###


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tibero.com/tiberostudio.en/about/sql-editor/run-sql/task-queue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
