# Tasks manager

A task can be of two types:&#x20;

* TASK — a fast task, executed in a single-threaded mode, delaying all other agent functions.&#x20;
* JOB — a task executed in the background. As a rule, such a task is executed longer in a separate thread or process. BOF can also be executed.
* TUNNEL — a task indicating the start or stop of network tunnels.

AdaptixС2 registers and saves in the database all tasks ever completed. The task table displays the task type, the operator who started the task, the time of task execution, its status and a short answer.

<figure><img src="/files/9P0WxeioJwENVEEMvCU9" alt=""><figcaption></figcaption></figure>

The output of a specific command is displayed in the Task Output console when you select a task in the Tasks table.

<figure><img src="/files/XqVAGSsWHmRKjPgvOi3u" alt=""><figcaption></figcaption></figure>

To activate the search bar, you must use the key combination `Ctrl+F` in the task table.

<figure><img src="/files/VMWyfAJQowe2wDNZF2TA" alt=""><figcaption></figcaption></figure>

The Tasks table has the ability to filter tasks by individual agents.

<figure><img src="/files/mnQQQMHg4O6p6pgJaAQb" alt="" width="147"><figcaption></figcaption></figure>

Tasks can be filtered by status. For example, you can filter only cancelled tasks or only those that are in progress (convenient for Jobs).

<figure><img src="/files/O9nDLc6NI6KJ5ls4DqLV" alt="" width="113"><figcaption></figcaption></figure>

The Task table has the ability to filter by a substring in a command or by the result of its execution.

<figure><img src="/files/SOS4ezJoatq7jxLJzED0" alt=""><figcaption></figcaption></figure>

The context menu provides options to terminate the currently running task, as well as delete tasks from the database. In addition, you can quickly copy the task ID or console command and immediately go to the console of the selected agent.

<figure><img src="/files/t1p698caBqNlSxN1kMOU" alt=""><figcaption></figcaption></figure>


---

# 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://adaptix-framework.gitbook.io/adaptix-framework/adaptix-c2/data-management/tasks-manager.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.
