# get\_task\_list

Retrieve a list of tasks per selected and authorized server. For each task, the API returns a few values.

Required User Role: See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/May2026/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Syntax

`def get_task_list(` `self,` `server` `)`

## Parameters

Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| server | string | The name of the server on which the tasks reside. |

## Return values

AemGetTaskListResp

Return values

| Value | Type | Description |
| --- | --- | --- |
| taskList | List&lt;AemTaskInfo&gt; | An array of Endpoint objects. |
| name | string | <ul> <li><span><span>Replicate</span>:</span> - The name of the task.</li> <li> <p><span><span>Compose</span>: </span>- The name of the task or workflow appended with a double underscore and the project name.</p> <p><span><span>Example: </span></span>&nbsp;</p> <p><span>mytask__myproject</span> </p> </li> </ul> |
| state | AemTaskState<br><br>{<br><br>STOPPED = 0,<br><br>RUNNING = 1,<br><br>ERROR = 2,<br><br>RECOVERY = 3<br><br>} | - |
| stop\_reason | AemTaskStopReason<br><br>{<br><br>NONE = 0,<br><br>NORMAL = 1,<br><br>RECOVERABLE\_ERROR = 2,<br><br>FATAL\_ERROR = 3,<br><br>FULL\_LOAD\_ONLY\_FINISHED = 4,<br><br>STOPPED\_AFTER\_FULL\_LOAD = 5,<br><br>STOPPED\_AFTER\_CACHED\_EVENTS = 6,<br><br>EXPRESS\_LICENSE\_LIMITS\_REACHED = 7,<br><br>STOPPED\_AFTER\_DDL\_APPLY = 8,<br><br>STOPPED\_LOW\_MEMORY = 9,<br><br>STOPPED\_LOW\_DISK\_SPACE = 10<br><br>} | The reason the task stopped. For Compose tasks, this will always be NONE. |
| message | string | The message if the task stopped due to an error. |
| assigned\_tags | array | Returns the custom tags assigned to the task. If no tags are assigned to the task, an empty array will be returned. |

## Errors

See [general errors](https://help.qlik.com/en-US/enterprise-manager/May2026/Content/EnterpriseManager/EnterpriseManager_APIGuide/NetAPI/error_handling.htm).