# Flowable taskQuery always returns 128 items

**URL:** <https://forum.flowable.org/t/flowable-taskquery-always-returns-128-items/4099>\
**Category:** Flowable Engine\
**Created:** [June 28, 2019, 10:52am UTC](https://forum.flowable.org/t/flowable-taskquery-always-returns-128-items/4099 "2019-06-28T10:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumitri](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@soumitri](https://forum.flowable.org/u/soumitri)\
**Post date:** [June 28, 2019, 10:52am UTC](https://forum.flowable.org/t/flowable-taskquery-always-returns-128-items/4099/1 "2019-06-28T10:52:02Z")

</div>

I have a Spring Boot Project where I use flowable.

I have also added flowable-REST to automatically expose flowable REST APIs.

I am trying to write a piece of code to get the list of `Task` which I am doing by autowiring `TaskService` and the code is as follows.

```
TaskQuery query = taskService.createTaskQuery()
.taskCandidateGroup("cg3")
.active()
.includeProcessVariables();

query.count(); // This returns 128 max

```

If I run the `list()` method on this `query` object, it returns me the `List<Task>` fine but the list only contains items where as it actually has 10586 items.

I confirm this by hitting the equivalent REST API (find below) which shows the total count as 10586.

[localhost:8080/process-api/runtime/tasks?candidateGroup=cg3&includeProcessVariables=true&active=true](http://localhost:8080/process-api/runtime/tasks?candidateGroup=cg3&includeProcessVariables=true&active=true)

How can I get all the items?
